+ 1
Different languages, do they translate the same?
So since every code, no matter what coding, goes down to ones and zeros, if you set it to say 'Hello World' in two different languages, do they translate down to the same ones and zeros?
1 Odpowiedź
+ 1
A programming language is nothing else than a more human and shorter way to write machine code. Your code will be compiled into machine code by your compiler. Simple calculations are likely to be compiled into the same machine code, since you can't do much wrong there. But many languages have runtime features that have to be compiled as well. So if you write the same code in two different languages, you will not get the same machine code out of it. Not even if you take two of the most basic languages with no runtime features, what so ever, because you won't be using the same compiler and every compiler might generate slightly different machine code out of your code.