greenhills编译器关闭文件或部分文件的优化 [英] greenhills compiler turn off optimization for file or part of
本文介绍了greenhills编译器关闭文件或部分文件的优化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我找到了几个代码段,用于禁用专用代码部分的GCC优化。
I found several code snippets for disabling GCC optimization for dedicated code parts.
使用编译指示GCC优化(0)
with pragma GCC optimize(0)
但是对于Greenhils编译器,我找不到类似的东西。
But I could not found something like that for Greenhils compiler.
没有这样的选择吗?
推荐答案
从手册中:
#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.
这篇关于greenhills编译器关闭文件或部分文件的优化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文