Section attributes - GCC vs. MW

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

Section attributes - GCC vs. MW

1,317 Views
juhalaukkanen
Contributor III

With MW compiler I can specify attributes for a section with following pragma.

#pragma section R ".hello"

__declspec(section ".hello") int const world = 42;

With GCC compiler I know equivalent for specifying section.

__attribute__ ((section (".hello"))) int const world = 42;

What would be the equivalent for specifying that R attribute with GCC compiler?

GCC is 4.8.2 (gcc-4.8.2-Ee500v2-eabispe) and MW compiler is 4.3 build 278. Both supplied with CW 10.4.

Labels (2)
0 Kudos
Reply
1 Reply

782 Views
juhalaukkanen
Contributor III

Any input? Maybe can be handled only by LCF?

0 Kudos
Reply