The S32DS cannot view the address of the static variable when the map file is compiled

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

The S32DS cannot view the address of the static variable when the map file is compiled

766 Views
jack_huang1
Contributor III

Dear;

        When compiling with S32DS, we found that the defined static variable could not display the corresponding address in the map file. In the figure below, we can see that the length of the existing variable is 2BYTE in main.o, but the following display can only see the address of testval2, but not testval1. Where do I need to set it up? It used to display normally when IAR was used.

jack_huang1_0-1708504587635.jpeg

        

          Thank you!

   Best Regards!

0 Kudos
Reply
1 Reply

725 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @jack_huang1 

this is a matter of optimizations. If the level of optimizations is -O1 or more, this is quite expected behavior. If you turn the optimizations off completely, the variable should have its own address. I don't think you should worry about this kind of optimizations.

Regards,

Lukas

0 Kudos
Reply