Constants Into ROM

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
770件の閲覧回数
WadeH
Contributor III

How to put constants into ROM?

(CW 6.3 SE, Coldfire 51MM256)

The help-file says to use "#pragma INTO_ROM" but the compiler rejects this as an " illegal pragma."


Help-file also suggests "-Cc: Allocate Constant Objects into ROM" but I can't see how to do this.

The 'Standard Settings: menu (completely changed from last time I saw it, BTW) has no place under 'Coldfire Linker' to make this change.

 

Wade Hassler

ラベル(1)
タグ(1)
0 件の賞賛
返信
1 解決策
555件の閲覧回数
BlackNight
NXP Employee
NXP Employee

Hello,

by default, constants with the ColdFire compiler are already in ROM. You should be able to verify this if you enable the linker map file (in the linker output options).

 

The pragma INTO_ROM and the option -Cc are not for the ColdFire compiler, but for the HCS08 one. That's why they are not accepted by the ColdFire compiler. And INTO_ROM and -Cc for the S08 compiler are only for the HIWARE object file format (a proprietary and legacy object file format). For ELF/Dwarf which is a standard and the default these option and pragma are not needed.

 

Hope this helps,

BK

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
556件の閲覧回数
BlackNight
NXP Employee
NXP Employee

Hello,

by default, constants with the ColdFire compiler are already in ROM. You should be able to verify this if you enable the linker map file (in the linker output options).

 

The pragma INTO_ROM and the option -Cc are not for the ColdFire compiler, but for the HCS08 one. That's why they are not accepted by the ColdFire compiler. And INTO_ROM and -Cc for the S08 compiler are only for the HIWARE object file format (a proprietary and legacy object file format). For ELF/Dwarf which is a standard and the default these option and pragma are not needed.

 

Hope this helps,

BK

0 件の賞賛
返信