Hacker News new | ask | show | jobs
by circuit10 1032 days ago
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

1 comments

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