This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/TMS320F28377D: Can I changed the compiler to be Byte oriented versus Word oriented?

Part Number: TMS320F28377D

Tool/software: TI C/C++ Compiler

Hi there,

I'm using some code that passes offset addresses based on relative offsets of members when the structs are declared.

For example:

typedef struct{

uint8_t apple[4];   /*0x00*/

uint32_t banana;  /*0x02*/

uint32_t mango;  /*0x04*/

} mystruct;

Here the comments are the offsets in memory of the corresponding member.  What, I'd like is for the offsets to increment like 0x00, 0x04, 0x08 - to be byte based instead of word based so that my application is compatible with some external hardware.  Is there some way to configure the compiler to do this for me?