3 ms·
> Unfortunately, that doesn’t work anymore; compilers are smart now, and they don’t like it when objects alias. Let's be specific: compilers for languages that
by gumby 6y ago
> Unfortunately, that doesn’t work anymore; compilers are smart now, and they don’t like it when objects alias.
Let's be specific: compilers for languages that support aliasing. For example, FORTRAN does not permit aliasing and therefore has all sorts of optimizations that languages that do permit aliasing cannot have.
It's a tradeoff like any other, and isn't specific to a compiler beyond the fact that a given compiler X can compile language Y.
- varajelle 6y agoBut Fortran has its own ABI, while a believe this article is only about C ABI.
- pjmlp 6y agoThere is no such thing as C ABI, rather the OS ABI, which on OSes written in C happens to be the C ABI. This is specially noticeable in OSes outside the UNIX culture, where two C compilers might not share the same ABI for all its features, while having the same ABI subset for OS libraries and syscalls.