转贴 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 :em14: 呵呵。这个给力。
页:
[1]