This pragma instructs the compiler to perform optimizations to reduce image size at the expense of a possible increase in execution time. [img][/img]Usage
This pragma enables you to assign optimization goals to individual functions.
[img][/img]Restriction
The pragma must be placed outside the function.
#pragma Onum
ARM Compiler toolchain v4.1 for µVision Compiler Reference
This pragma instructs the compiler to perform optimizations to reduce execution time at the expense of a possible increase in image size. [img][/img]Usage
This pragma enables you to assign optimization goals to individual functions.
[img][/img]Restriction
The pragma must be placed outside the function.
#pragma push
ARM Compiler toolchain v4.1 for µVision Compiler Reference
参考手册(compiler user guide)吧:
#pragma Ospace
#pragma Ospace
This pragma instructs the compiler to perform optimizations to reduce image size at the expense of a possible increase in execution time.
[img][/img]Usage
This pragma enables you to assign optimization goals to individual functions.
[img][/img]Restriction
The pragma must be placed outside the function.
#pragma Onum
#pragma Onum
This pragma changes the optimization level.
[img][/img]Syntax
#pragma OnumWhere:
numis the new optimization level.
The value of num is 0, 1, 2 or 3.
[img][/img]Usage
This pragma enables you to assign optimization levels to individual functions.
[img][/img]Restriction
The pragma must be placed outside the function.
#pragma Otime
#pragma Otime
This pragma instructs the compiler to perform optimizations to reduce execution time at the expense of a possible increase in image size.
[img][/img]Usage
This pragma enables you to assign optimization goals to individual functions.
[img][/img]Restriction
The pragma must be placed outside the function.
#pragma push
#pragma push
This pragma saves the current pragma state.
#pragma pop
#pragma pop
This pragma restores the previously saved pragma state.
明白了,非常感谢啊