4 ms·
What if you put the array in a struct and made a union of both uint32_t and uint8_t? Would the union with the larger size force the compiler to generate a 4-byt
by phkahler 10y ago
What if you put the array in a struct and made a union of both uint32_t and uint8_t? Would the union with the larger size force the compiler to generate a 4-byte aligned array for the bytes?
I suggest this because it would be portable without any compiler specific stuff.
- mzs 10y agoIt's already too late, the data is read from a file so the base of the array can be say at address 0xYYYYY2.