13.07.2015 Views

TASKING VX-toolset for 8051 User Guide

TASKING VX-toolset for 8051 User Guide

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

<strong>TASKING</strong> <strong>VX</strong>-<strong>toolset</strong> <strong>for</strong> <strong>8051</strong> <strong>User</strong> <strong>Guide</strong>__rom int i; /* always uninitialized */__rom const int j; /* always uninitialized */See C compiler option --no-clear.compactmaxmatch {value | default | restore} (*)With this pragma you can control the maximum size of a match.See C compiler option --compact-max-size.extend {size | default | restore} (*)Specify the maximum amount of internal RAM to be used <strong>for</strong> pseudo registers.See C compiler option --extend and Section 1.7.1, Automatic Variables.extern symbolNormally, when you use the C keyword extern, the compiler generates an .EXTRN 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 .EXTRN directive out.With this pragma you can <strong>for</strong>ce an external reference (.EXTRN assembler directive), even when thesymbol is not used in the module.inline / noinline / smartinline [default | restore] (*)See Section 1.10.4, Inlining Functions: inline.inline_max_incr {value | default | restore} (*)inline_max_size {value | default | restore} (*)With these pragmas you can control the automatic function inlining optimization process of the compiler.It has effect only when you have enabled the inlining optimization (C compiler option --optimize=+inline).See C compiler options --inline-max-incr / --inline-max-size.linear_switch / jump_switch / binary_switch / smart_switch [default |restore] (*)With these pragmas you can overrule the compiler chosen switch method:linear_switchjump_switch<strong>for</strong>ce jump chain code. A jump chain is comparable with an if/else-if/else-if/elseconstruction.<strong>for</strong>ce jump table code. A jump table is a table filled with jump instructions <strong>for</strong> eachpossible switch value. The switch argument is used as an index to jump within thistable.24

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

Saved successfully!

Ooh no, something went wrong!