Re: [PARPORT] compile with optimisation

From: Stephen Mollett (molletts@yahoo.com)
Date: Mon Aug 27 2001 - 18:34:27 EDT

  • Next message: Nguyen Thai: "RE: [PARPORT] Can parport be accessed without a device driver ?"

    Hi,

    > ... i need to compile using optimisation. however,
    > i'm not too sure where i should put the -02 in my gcc command line. can
    > someone pls give me an example? thx.

    It can go just about anywhere, really. IIRC, the last -O on the command line
    is the one that gcc honours. I generally tend to put optimisations at or near
    the front of the command line like:

    gcc -O2 -everything-else -o foo foo.c

    but that's just my personal preference.

    Stephen

    -- To unsubscribe, send mail to: linux-parport-request@torque.net --
    -- with the single word "unsubscribe" in the body of the message. --



    This archive was generated by hypermail 2b29 : Mon Aug 27 2001 - 18:35:25 EDT