Hacker News new | ask | show | jobs
by vardump 265 days ago
Notably for example C/C++ code is not necessarily functionally equivalent, when it's compiled on different platforms.
1 comments

It's not even guaranteed to be functionally equivalent when compiled on the same hardware with the same compiler etc. Undefined behaviour can do what it wants. (And implementation defined behaviour also has a lot of leeway.)

However, if you stick to only defined behaviour, they are 'functionally equivalent', if your compiler doesn't have a bug.