12.07.2015 Views

MPLAB C32 C COMPILER USER'S GUIDE

MPLAB C32 C COMPILER USER'S GUIDE

MPLAB C32 C COMPILER USER'S GUIDE

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>MPLAB</strong> ® <strong>C32</strong> C Compiler User’s Guide1.8.3 Options for Controlling the C DialectThe following options define the kind of C dialect used by the compiler.TABLE 1-4: C DIALECT CONTROL OPTIONSOptionDefinition-ansiSupport all (and only) ANSI-standard C programs.-aux-info filename Output to the given filename prototyped declarations for allfunctions declared and/or defined in a translation unit,including those in header files. This option is silentlyignored in any language other than C. Besidesdeclarations, the file indicates, in comments, the origin ofeach declaration (source file and line), whether thedeclaration was implicit, prototyped or unprototyped (I, Nfor new or O for old, respectively, in the first character afterthe line number and the colon), and whether it came from adeclaration or a definition (C or F, respectively, in thefollowing character). In the case of function definitions, aK&R-style list of arguments followed by their declarations isalso provided, inside comments, after the declaration.-ffreestandingAssert that compilation takes place in a freestandingenvironment. This implies -fno-builtin. A freestandingenvironment is one in which the standard library may notexist, and program startup may not necessarily be at main.The most obvious example is an OS kernel. This isequivalent to -fno-hosted.-fno-asmDo not recognize asm, inline or typeof as a keyword,so that code can use these words as identifiers. You canuse the keywords __asm__, __inline__ and__typeof__ instead.-ansi implies -fno-asm.-fno-builtin-fno-builtin-function-fsigned-char-fsigned-bitfields-funsigned-bitfields-fno-signed-bitfields-fno-unsigned-bitfields-funsigned-char-fwritable-stringsDon't recognize built-in functions that do not begin with__builtin_ as prefix.Let the type char be signed, like signed char.(This is the default.)These options control whether a bit field is signed orunsigned, when the declaration does not use either signedor unsigned. By default, such a bit field is signed, unless-traditional is used, in which case bit fields are alwaysunsigned.Let the type char be unsigned, like unsigned char.Store strings in the writable data segment and don’t makethem unique.DS51686A-page 18© 2007 Microchip Technology Inc.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!