我在Project Setting->post-Build 里的commands加了一句 chex -fi -o $(OutputPath)$(TargetSName).hex $(OutputPath)$(TargetSName).sm8 可以在release文件夹里生成.hex文件,但这个文件有66K,而在debug文件的.map里编译的代码没这么大吧
start 00008080 end 000085b1 length 1329 segment .const start 0000872b end 0000ecfa length 26063 segment .text start 00004000 end 00004000 length 0 segment .eeprom start 00000000 end 00000000 length 0 segment .bsct start 00000000 end 00000006 length 6 segment .ubsct start 00000006 end 00000006 length 0 segment .bit start 00000006 end 00000006 length 0 segment .share start 00000100 end 00000272 length 370 segment .data, initialized start 000085b9 end 0000872b length 370 segment .data, from start 00000272 end 000007c2 length 1360 segment .bss start 00000000 end 0000bca3 length 48291 segment .debug start 00008000 end 00008080 length 128 segment .const start 000085b1 end 000085b9 length 8 segment .init
应该才26K的吧,为什么呢??? |