Section attributes - GCC vs. MW

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Section attributes - GCC vs. MW

1,312 次查看
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 回复

777 次查看
juhalaukkanen
Contributor III

Any input? Maybe can be handled only by LCF?

0 项奖励
回复