Difference between revisions of "Useful Compiler Options"
From MorphOS Library
(Contents++;) |
(subchapters, some contents) |
||
Line 8: | Line 8: | ||
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... | 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== | ||
+ | |||
+ | |||
+ | ==Optimization options== |
Revision as of 14:25, 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 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