No, no it not possible without adding the directive to the C code before the variable.
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.
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