Can some one let me know what is the default state of --align_structs compiler option ?
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.
Can some one let me know what is the default state of --align_structs compiler option ?
There is no default. You have to supply a value, or you get a diagnostic.
Thanks and regards,
-George
George,
But I do see some projects without a -align_structs in the building options. Does that mean it is byte aligned?
e.g: cl470.exe
-g -q -o0 -fr".\Debug\" -i"./Include" -d"_DEBUG" --abi=tiabi --endian=big
Thanks,
Haixiao
The default alignment of structures is addressed in the compiler user's guide. See http://www-s.ti.com/sc/techlit/spnu151 , the section titled Structure and Array Alignment.
Thanks and regards,
-George