12.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
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

C Languageextern 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.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.profile [flags | default | restore] / endprofileControl the profile settings. The pragma works the same as C compiler option --profile. Note that thispragma will only be checked at the start of a function. endprofile switches back to the previous profilingsettings.profiling [on | off | default | restore]If profiling is enabled on the command line (C compiler option --profile), you can disable part of yoursource code <strong>for</strong> profiling with the pragmas profiling off and profiling.15

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

Saved successfully!

Ooh no, something went wrong!