4 ms·
> Also Assembly doesn't has UB, making it ironic that it is safer to write straight Assembly at the expense of portability than C or C derived languages. You j
by bandook_raja 9y ago
> Also Assembly doesn't has UB, making it ironic that it is safer to write straight Assembly at the expense of portability than C or C derived languages.
You just need to know your compiler flags/configuration to produce exact assembly output (if you want that). And about assembly not having UB, BSF and BSR are pretty good examples for that.
- pjmlp 9y agoThat just is quite ironic, because it is even version dependent across releases of the same compiler, which means anything fine tuned for version X can break on version X + 1, due to changes on the optimizer. And I doubt anyone is regularly reviewing the produced Assembly every single time they change compilers. Assembly doesn't have more than 200 documented cases that hardly any human is capable of remembering.