Quantcast
Channel: Tools
Viewing all articles
Browse latest Browse all 91752

Forum Post: RE: How can I allocate a 2-bytes section in a 32-bit addressing device?

$
0
0

[quote user="fan Linlin"]the minimum size of a section allocated by SECTIONS directive is 4 bytes? Does the size must be a multiple of 4?[/quote]

No to both questions.

[quote user="fan Linlin"]Can I allocate a 2-bytes section  in the device?[/quote]

Yes.

[quote user="fan Linlin"]How?[/quote]

I did it in a very small test case.  I defined the data in this hand-coded assembly.

        .global one_short, two_short          .sect   one one_short:         .short  1          .sect   two two_short:         .short  2

I'm sure there are other ways to do it.  How are you doing it?

Thanks and regards,

-George


Viewing all articles
Browse latest Browse all 91752

Trending Articles



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