- 論壇徽章:
- 0
|
; This will attempt to merge constant section constants, if 1 only
; string constants and constants from constant pool, if 2 also constant
; variables.
fmerge-all-constants
Common Report Var(flag_merge_constants,2) Init(1) Optimization
Attempt to merge identical constants and constant variables
fmerge-constants
Common Report Var(flag_merge_constants,1) Optimization
Attempt to merge identical constants across compilation units
這個選項是編譯器的編譯選項,O2下應(yīng)該是默認(rèn)開啟fmerge-all-constants吧?用的編譯器都一樣,鏈接器也需要單獨加什么選項嗎?
回復(fù) 2# hellioncu
|
|