Section attributes - GCC vs. MW

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Section attributes - GCC vs. MW

1,313件の閲覧回数
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.

ラベル(2)
0 件の賞賛
返信
1 返信

778件の閲覧回数
juhalaukkanen
Contributor III

Any input? Maybe can be handled only by LCF?

0 件の賞賛
返信