13.07.2015 Views

TASKING VX-toolset for ARM User Guide

TASKING VX-toolset for ARM User Guide

TASKING VX-toolset for ARM User 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.

C Languagefloat 0.5iextern symbolNormally, when you use the C keyword extern, the compiler generates an .EXTERN directive in thegenerated assembly source. However, if the compiler does not find any references to the extern symbolin the C module, it optimizes the assembly source by leaving the .EXTERN directive out.With this pragma you can <strong>for</strong>ce an external reference (.EXTERN assembler directive), even when thesymbol is not used in the module.inline / noinline / smartinlineSee Section 1.10.2, Inlining Functions: inline.inline_max_incr / inline_max_size {value | default | restore} (*)With these pragmas you can control the automatic function inlining optimization process of the compiler.It has only effect when you have enabled the inlining optimization (--optimize=+inline (-Oi)).See C compiler options --inline-max-incr and --inline-max-size.macro / nomacro [on | off | default | restore] (*)Turns macro expansion on or off. By default, macro expansion is enabled.maxcalldepth {value | default | restore} (*)With this pragma you can control the maximum call depth. Default is infinite (-1).See C compiler option --max-call-depth.message "message" ...Print the message string(s) on standard output.nomisrac [nr,...] [default | restore] (*)Without arguments, this pragma disables MISRA-C checking. Alternatively, you can specify acomma-separated list of MISRA-C rules to disable.See C compiler option --misrac and Section 4.7.2, C Code Checking: MISRA-C.optimize [flags | default | restore] (*) / endoptimizeYou can overrule the C compiler option --optimize <strong>for</strong> the code between the pragmas optimize andendoptimize. The pragma works the same as C compiler option --optimize.See Section 4.5, Compiler Optimizations.17

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

Saved successfully!

Ooh no, something went wrong!