Useful Compiler Options

From MorphOS Library

Revision as of 13:42, 23 October 2010 by Krashan (talk | contribs) (Contents++;)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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...

−W