Is it possible to sequentially designate the memory address to which the variable is allocated?

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

Is it possible to sequentially designate the memory address to which the variable is allocated?

849件の閲覧回数
kkons
Contributor I

I am using MPC5674. Is it possible to sequentially designate the memory address to which the variable is allocated without modifying the c code?

0 件の賞賛
返信
3 返答(返信)

789件の閲覧回数
davidtosenovjan
NXP TechSupport
NXP TechSupport

No, no it not possible without adding the directive to the C code before the variable.

0 件の賞賛
返信

784件の閲覧回数
kkons
Contributor I

Thank you very much for your reply. I have another question. An empty memory space occurs in the middle of variables of different types. I want to remove this, but I don't know how.

0 件の賞賛
返信

778件の閲覧回数
davidtosenovjan
NXP TechSupport
NXP TechSupport

CodeWarrior has an option “Struct Alignment” its description says following:

The Struct Alignment  drop-down list has the default selection PowerPC. To conform with the PowerPC EABI and interoperate with third-party object code, this setting should remain PowerPC. Other settings may lead to reduced performance or alignment violation exceptions. If you choose another setting for Struct Alignment, your code may not work correctly. The options available are as follows:

- PowerPC

- 68K

- 68K 4-byte

0 件の賞賛
返信