2 ms·
> There is a huge mismatch between the assumptions of the C spec and actual machine code. People like to say „C is close to the metal“. Really not true at all
by MrBuddyCasino 6y ago
> There is a huge mismatch between the assumptions of the C spec and actual machine code.
People like to say „C is close to the metal“. Really not true at all anymore.
- goldenkey 6y agoActually, it is true - which is why endian is a problem in the first place. ASM code is different when written for little endian vs big endian. Access patterns are positively offset instead of negatively. A language that does the same things regardless of endianness would not have pointer arithmetic. That is not ASM and not C.