4 ms·
Is the obfuscated-C style really necessary? Last I checked, compacting C source did not directly result in tighter object code.
by jacknews 2y ago
Is the obfuscated-C style really necessary?
Last I checked, compacting C source did not directly result in tighter object code.
- o11c 2y agoIt's not just unnecessary, it's wrong since it casts a potentially-unaligned pointer, instead of just using `memcpy`. It will happen to work in some common cases if the input is exactly the output of `malloc`, or the same after certain kinds of fixed headers, but will fail for many other buffers.