Open sezero opened 7 years ago
it is not supported by Open Watcom. It requires support from code generator, run-time libraries and linker which is not implemented. OW use alignment value sizeof( int ).
Well, take this as a feature request, then :)
I do this: In C++ code: extern "C" aligned_struct buf; // Set in a special segment so assembler can set its alignment
aligned_struct buf; // Set in standard segment name back again
In assembler code: ALIGNED_DATA segment PAGE4K public use32 'DATA' extrn _buf:aligned_struct ALIGNED_DATA ends
Do we have an equivalent for
__declspec(align(x))
or__attribute__((__aligned(x)))
with watcom? E.g.: one might want to do: