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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

850 Views
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 Kudos
Reply
3 Replies

790 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

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

0 Kudos
Reply

785 Views
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 Kudos
Reply

779 Views
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 Kudos
Reply