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.6 PREDEFINED MACROS1.6.1 <strong>MPLAB</strong> <strong>C32</strong> C Compiler Macros<strong>MPLAB</strong> <strong>C32</strong> C compiler defines a number of macros, most with the prefix “_MCHP_,”which characterize the various target specific options, the target processor and otheraspects of the host environment._MCHP_SZINT_MCHP_SZLONG_MCHP_SZPTR__mchp_no_float__NO_FLOAT__SOFT_FLOAT__PIC____pic____PI<strong>C32</strong>MX__PI<strong>C32</strong>MX__PI<strong>C32</strong>MX__LANGUAGE_ASSEMBLY__LANGUAGE_ASSEMBLY___LANGUAGE_ASSEMBLYLANGUAGE_ASSEMBLY__LANGUAGE_C__LANGUAGE_C___LANGUAGE_CLANGUAGE_C__processor__32 or 64, depending on command line optionsto set the size of an integer (-mint32-mint64).32 or 64, depending on command line optionsto set the size of an integer (-mlong32-mlong64).32 always since all pointers are 32 bits.Defined if -mno-float specified.Defined if -mno-float specified.Defined if -mno-float not specified.Indicates that floating-point is supported vialibrary calls.The translation unit is being compiled forposition independent code.Always defined.Defined if -ansi is not specified.Defined if compiling a pre-processedassembly file (.S files).Defined if compiling a pre-processedassembly file (.S files) and -ansi is notspecified.Defined if compiling a C file.Defined if compiling a C file and -ansi is notspecified.Where “processor” is the capitalized argumentto the -mprocessor option. E.g.,-mprocessor=32mx12f3456 will define__32MX12F3456__.1.6.2 SDE Compatibility MacrosThe MIPS ® SDE (Software Development Environment) defines a number of macros,most with the prefix “_MIPS_,” which characterize various target specific options, somedetermined by command line options (e.g., -mint64). Where applicable, thesemacros will be defined by the <strong>MPLAB</strong> <strong>C32</strong> C compiler in order to ease portingapplications and middleware from the SDE to <strong>MPLAB</strong> <strong>C32</strong> C compiler._MIPS_SZINT_MIPS_SZLONG_MIPS_SZPTR__mips_no_float32 or 64, depending on command line optionsto set the size of an integer (-mint32-mint64).32 or 64, depending on command line optionsto set the size of an integer (-mlong32-mlong64).32 always since all pointers are 32 bits.Defined if -mno-float specified.DS51686A-page 10© 2007 Microchip Technology Inc.

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

Saved successfully!

Ooh no, something went wrong!