Hi,
I have created a simple hello world program in code warrior V9.2.
Binary file size of this program is 4036 KB. where as in the older version , code warrior V8.5, binary file size of the same program takes only
33 KB.
Could anyone tell me the reason for this. I would also like to know how to reduce the binary file size in code warrior V9.2.
Solved! Go to Solution.
Hello,
Could you possibly compare if the .lcf files are the same in both cases (v9.2 vs. v8.5).
I suspect there might be a gap between two sections. The binary file cannot "skip" the gaps then its size may be much bigger in comparison to e.g. s19 or elf file.
Another option is to enable Linker option "generate multiple binary files". in this case if there is a address gap between two sections a separate binary file for each section is created.
Can you post your .lcf + .map files for both cases (v9.2 vs. v8.5) for further analysis if the suggestion above does not help.
Thanks
Stan
Hello,
Could you possibly compare if the .lcf files are the same in both cases (v9.2 vs. v8.5).
I suspect there might be a gap between two sections. The binary file cannot "skip" the gaps then its size may be much bigger in comparison to e.g. s19 or elf file.
Another option is to enable Linker option "generate multiple binary files". in this case if there is a address gap between two sections a separate binary file for each section is created.
Can you post your .lcf + .map files for both cases (v9.2 vs. v8.5) for further analysis if the suggestion above does not help.
Thanks
Stan
Thanks for the reply Stan. Same thing was done and it was solved.