I was wondering if there was more information on the following (new?) pragma. The following clip was found in SPRU187s.pdf (pg 158).
The FUNCTION_OPTIONS pragma allows you to compile a specific function in a C or C++ file with additional command-line compiler options. The affected function will be compiled as if the specified list of options appeared on the command line after all other compiler options. In C, the pragma is applied to the function specified. In C++, the pragma is applied to the next function.
The syntax of the pragma in C is:
#pragma FUNCTION_OPTIONS (func, "additional options");
I can't find any other information about this pragma. For example:
- Would a common usage of this be to override the project/file-level compiler options for speed and code size options (-o, -ms) on a function level basis?
- Are there any limitations on the options allowed in the "additional options".
- Is there any documentation on how this is implemented in asm/linker?
Thanks,
Scott