Fasih Ahmed

Inter-procedural analysis (CW 10.6 DSC motor control)

Discussion created by Fasih Ahmed on Oct 24, 2018



I am using Code Warrior development studio 10.6 for DSC MC56F82478. My flash has been consumed to almost 93% so I made optimization in project settings by turning on Inter-Procedural Analysis from Off to File. This reduced by flash consumption down by roughly 20%. 



However the code did not run, so after comparing two elf.xMAP files for both non-optimised and optimised versions, we saw that vector.txt file was left out, which is important for code to run properly.

So I found this file was lying in Vectors.c and I turned off IPA for that specific .c file. This made the vector.txt file to come back again but also the flash size came back to 93%.



So my question is, is there a way where we can chose certain c files to be left out in IPA optimization which will allow me have a decreased flash size but still keep certain parts of program. 


best regards