AnsweredAssumed Answered

Code Optimisation

Question asked by syed idris on Oct 4, 2016
Latest reply on Oct 6, 2016 by Jorge Antonio Alcala Vazquez

We are using KL03 chip with KDS 3.1.0 and PE , "debug console" and "fsl-i2c" components from PE are used, In the code when I am adding some mathematical calculations of float values, the memory is getting overflowed and showing errors as


make: *** [test.elf] Error 1 
region `m_text' overflowed by 1092 bytes 
region m_text overflowed with text and data 
test.elf section `.text' will not fit in region `m_text' 


  • How to optimize the code so that we can get same code working ?
  • How to use the optimization levels as available in project properties ?