gcc: M32C Pragmas
1
1 6.61.3 M32C Pragmas
1 -------------------
1
1 'GCC memregs NUMBER'
1 Overrides the command-line option '-memregs=' for the current file.
1 Use with care! This pragma must be before any function in the
1 file, and mixing different memregs values in different objects may
1 make them incompatible. This pragma is useful when a
1 performance-critical function uses a memreg for temporary values,
1 as it may allow you to reduce the number of memregs used.
1
1 'ADDRESS NAME ADDRESS'
1 For any declared symbols matching NAME, this does three things to
1 that symbol: it forces the symbol to be located at the given
1 address (a number), it forces the symbol to be volatile, and it
1 changes the symbol's scope to be static. This pragma exists for
1 compatibility with other compilers, but note that the common
1 '1234H' numeric syntax is not supported (use '0x1234' instead).
1 Example:
1
1 #pragma ADDRESS port3 0x103
1 char port3;
1