我发现-E对于查看预处理器输出和调试宏非常有用,并且我已经看到-fdump-class-hierarchy查看类层次结构的v表...我知道也有一些标志可以转储asm输出..还有哪些类似于这些的广泛(或也许有点未知,但非常方便)的标志?
Few flags which I like:
-x language
: used to compile file with extension other than .c or .cpp
-s
- dump asm.
-g
- debug build.
gcc -O3 -Q --help=optimizers | grep disabled
gcc -O3 -Q --help=optimizers | grep disabled
- will give you all optimization flags which remain diabled even after -O3
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.