Re: O2 flag in compilation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Also sprach C.Mohanasundaram:
} > I've always used the -O2 flag when compiling modules, but with everyone
} > asking about it lately it occurred to me that I don't know *why* I have to
} > do it.
} 
} 
} as far as i know it is an optimization flag. the number ranges from 1 to 6
} others please throw more light on this
} 
There are different levels of optimizations which gcc offers. You can
have none, some rather simple ones (-O1), some better ones (-O2), some
even better ones, but which may be risky in certain situations (-O3), and
so on. You should look in "info gcc" for more information on this.

-- 
|| Bill Wendling			wendling@ganymede.isdn.uiuc.edu
-
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux