EricFisher 发表于 2010-10-27 15:34

转贴 What specific flags are enabled by -O1 (-O2, -O3 or -Os)?

What specific flags are enabled by -O1 (-O2, -O3 or -Os)?

Varies by platform and GCC version. You can get GCC to tell you what flags it enables by doing this:

touch empty.c
gcc -O1 -S -fverbose-asm empty.c
cat empty.s

xoook 发表于 2010-10-28 10:52

:em14:

prolj 发表于 2010-10-28 12:39

呵呵。这个给力。
页: [1]
查看完整版本: 转贴 What specific flags are enabled by -O1 (-O2, -O3 or -Os)?