|
发表于 2006-6-12 19:50:43
|
显示全部楼层
优化选项及注意事项参见 magic linux 开发培训区的置顶帖:
RPM 建包 (GCC) 优化选项
真是不可理解,为什么以讹传讹如此严重,看下面最后一行:
-fomit-frame-pointer
Don't keep the frame pointer in a register for functions that don't need one. This avoids the instructions to save, set up and restore frame pointers; it also makes an extra register available in many functions. It also makes debugging impossible on some machines.
On some machines, such as the VAX, this flag has no effect, because the standard calling sequence automatically handles the frame pointer and nothing is saved by pretending it doesn't exist. The machine-description macro "FRAME_POINTER_REQUIRED" controls whether a target machine supports this flag.
Enabled at levels -O, -O2, -O3, -Os.
-fomit-frame-pointer 明明已经默认包含于 -O, -O2, -O3, -Os 各个优化级,为什么网上那么多人还要脱裤子放屁,在 -O3 后面还加上 -fomit-frame-pointer? |
|