r/AskComputerScience • u/dgpking • Apr 25 '21
Does all programming turn into machine code?
I don’t know if this question makes sense but when you write code in whatever language, python, C, Java etc does it all eventually get converted into assembly and then machine code?
35
Upvotes
2
u/Knaapje Apr 25 '21 edited Apr 25 '21
That's more of a definition question though, and not the traditional definition. Of course, code will need to be transformed to instructions in order to be executed, but saying that the code is transformed to machine code is a bit of a stretch.
Edit: for the downvoters, this is in the context of interpreters. I suggest you read up on interpreted vs compiled languages.