Difference between revisions of "Useful Compiler Options"
From MorphOS Library
(Looks like an article plan.) |
m |
||
Line 3: | Line 3: | ||
GCC compiler has hundreds of options. Some of them are irrelevant for typical usage, some of them are irrelevant to PowerPC architecture. This article presents a set of common option set used when compiling MorphOS programs. For detailed descriptions of all options see [http://gcc.gnu.org/onlinedocs/ GCC manual]. | GCC compiler has hundreds of options. Some of them are irrelevant for typical usage, some of them are irrelevant to PowerPC architecture. This article presents a set of common option set used when compiling MorphOS programs. For detailed descriptions of all options see [http://gcc.gnu.org/onlinedocs/ GCC manual]. | ||
+ | |||
==Warning options== | ==Warning options== | ||
Line 15: | Line 16: | ||
==Linker options== | ==Linker options== | ||
− | '''& | + | '''−noixemul''' |
'''−s''' | '''−s''' |
Revision as of 14:28, 23 October 2010
Grzegorz Kraszewski
GCC compiler has hundreds of options. Some of them are irrelevant for typical usage, some of them are irrelevant to PowerPC architecture. This article presents a set of common option set used when compiling MorphOS programs. For detailed descriptions of all options see GCC manual.
Warning options
These options control warnings issued by compiler on some potentially dangerous language constructs. While some programmers complain on compiler being too picky, it is recommended to turn most of these options on. It can save hours of time wasted on debugging...
−Wall
−Wextra
Linker options
−noixemul
−s
Optimization options
−On
−Os