AnsweredAssumed Answered

Section attributes - GCC vs. MW

Question asked by Juha Laukkanen on Sep 29, 2015
Latest reply on Oct 27, 2015 by Juha Laukkanen

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.