I've got numeous files (.c) compiled separatlyy with --opt_level = 3.
I've read in slau132i.pdf chapter 3.4 and i hope that compiling and linking with opt_level=4 could bring me new optilmizations (I'm looking for Flash size reduction).
But two problems:
1) "-opt_level=4" on link command raises an error: See "LINK LOG" below
2) I tried "-O=4" instead of "-opt_level=4", then it works. But, the remaining free flash size is exactly the same than when i compile all my sources with -opt_level=3 and link with no optimization.
Any idea welcome,
Thanks
LINK LOG:
cl430 --run_linker --map_file=contiki-wtc-298-tic.map --stack_size=0x0350 --heap_size=0x0205 --use_hw_mpy=F5 --warn_sections -I C:/Program\ Files/Texas\ Instruments/ccsv4/msp430/include -I C:/Program\ Files/Texas\ Instruments/ccsv4/tools/compiler/msp430/include -I C:/Program\ Files/Texas\ Instruments/ccsv4/tools/compiler/msp430/lib --reread_libs --rom_model obj_wtc-298-tic/pre_init.o obj_wtc-298-tic/boot.o ips-tic.co contiki-wtc-298-tic.a --library=C:/Program\ Files/Texas\ Instruments/ccsv4/tools/compiler/msp430/lib/rts430xl.lib C:/Program\ Files/Texas\ Instruments/ccsv4/msp430/include/lnk_msp430f5438a.cmd obj_wtc-298-tic/ips-tic-tic-management.o obj_wtc-298-tic/ips-tic-uart-management.o obj_wtc-298-tic/ips-tic-leds-management.o --opt_level=4
<Linking>
>> WARNING: more than one source file is specified; option --output_file is ignored
[_level=4.]
Fatal error: could not open source file "_level=4"
1 fatal error detected in the compilation of "_level=4".
Compilation terminated.
>> Compilation failure
>> Compilation failure
fatal error: Failed linktime optimization
>> Compilation failure