3 ms·
> If you know Asm you'll be far better at C; things like pointers and indirection immediately make sense. A lot of recent issues with compilers "introducing se
by EE84M3i 10y ago
> If you know Asm you'll be far better at C; things like pointers and indirection immediately make sense.
A lot of recent issues with compilers "introducing security issues" has come from this sort of understanding of C (overflows, other undefined behavior, etc). The places where C differs from just writing the assembly yourself are really really hard.
- adrianratnapala 10y agoAnd this is generally about compilers behaving badly. Some languages do a good job of creating an abstracted universe above the hardware that plays by its own rules. This allows the language/runtime to map programming constructs to hardware behaviour in highly inventive ways. C never was such a language, it's hardware abstractions are -- by design -- as leak-free as a fishnet. And yet compiler writers feel they need to get creative.