3 ms·
The problem with C is that its... kind of minimal, but it also needs tons of extensions to get things done. Want multiple heaps? That'll be a compiler extensio
by com2kid 4y ago
The problem with C is that its... kind of minimal, but it also needs tons of extensions to get things done.
Want multiple heaps? That'll be a compiler extension. Want to specify exactly where a variable is laid out in memory? Compile extension.
Have a memory layout that isn't just a flat map of address space? Better reach for a compiler extension.
Hardware registers? Eh, overlay it with a union or a struct or something, it'll be fine. Unless you want some sort of non-trivial typing on those registers.
People forget that C is written against an abstract C machine. C is not written against the underlying hardware platform. And the abstract C machine may differ from your target hardware by a fair bit.