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.
Thank you!
Best Regards!
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