Useful Compiler Options

From MorphOS Library

Revision as of 14:28, 23 October 2010 by Krashan (talk | contribs) (Looks like an article plan.)

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

&minusnoixemul

−s


Optimization options

−On

−Os