Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/118.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C greenhills编译器关闭文件或其一部分的优化_C_Compiler Optimization_Greenhills - Fatal编程技术网

C greenhills编译器关闭文件或其一部分的优化

C greenhills编译器关闭文件或其一部分的优化,c,compiler-optimization,greenhills,C,Compiler Optimization,Greenhills,我发现了几个用于禁用专用代码部分的GCC优化的代码片段 使用pragma GCC优化(0) 但是我没有为Greenhils编译器找到这样的东西 没有这样的选项吗?手册: #pragma ghs Ostring Turns on optimizations. The optional string may contain any or all of the following letters: L — Loop optimizations M — Memory optimizations S —

我发现了几个用于禁用专用代码部分的GCC优化的代码片段

使用pragma GCC优化(0)

但是我没有为Greenhils编译器找到这样的东西

没有这样的选项吗?

手册:

#pragma ghs Ostring
Turns on optimizations. The optional string may contain any or all of the following letters:
L — Loop optimizations
M — Memory optimizations
S — Small (but Slow) optimizations

#pragma ghs ZO
Disables all optimizations, starting from the next function.
从手册中:

#pragma ghs Ostring
Turns on optimizations. The optional string may contain any or all of the following letters:
L — Loop optimizations
M — Memory optimizations
S — Small (but Slow) optimizations

#pragma ghs ZO
Disables all optimizations, starting from the next function.

你问过GHS支持吗?你问过GHS支持吗?有人知道这个Pragma是否也适用于头文件中的静态内联函数吗???手册中没有提到它…有人知道这个Pragma是否也适用于头文件中的静态内联函数吗???手册上什么也没说。。。