Hacker News new | past | comments | ask | show | jobs | submit login

It doesn't need to be undefined to say it crashes on some architectures.



I guess it could also be implementation defined

My point here is that you can’t have “everything works as it does in the native assembly language” and “portable assembly” at the same time because if you rely on implementation defined or undefined behaviour then it’s not portable any more


That depends on what you mean by "portable". I think being able to use the same code across many platforms is enough to qualify. Being able to access raw machine behavior is part of the premise of portable assembly, not a disqualifier.


It’s definitely much more portable than assembly, but code that relies on unaligned pointer accesses won’t work on every platform




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: