Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22031

What is the significance of sbss2/sdata2?

$
0
0

I am working with PPC microcontroller (e200z4 specifically) using GCC based compiler. The PPC EABI support small data allocation if we define a variable whose size less than defined number (my case is 8). I understand that:

  • sdata is for small initialized data and it is modificable (will be located on RAM section).
  • sbss is the same as sdata that will be located on RAM, but it is for unitialized or zero variable.
  • these 2 section is access by only one instruction that is referenced by a 16bit signed offset + base register.

What I dont know is that the significance of sbss2 and sdata2, by reading the PPC EABI specification? Will they be small variables on RAM or Flash and if they are difference from sdata and sbss?


Viewing all articles
Browse latest Browse all 22031

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>