2 ms·
The Windows heap functions align to 8 bytes on 32-bit. I once worked on code that depended on this. You want 8 byte alignment. For one, you could have doubles.
by asveikau 11y ago
The Windows heap functions align to 8 bytes on 32-bit. I once worked on code that depended on this.
You want 8 byte alignment. For one, you could have doubles. (Though I just googled this and apparently gcc will 4 byte align those by default on x86) Another possibility is you could have a data structure that relies on "lock cmpxchg8b".