r/AskComputerScience • • 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

32 comments sorted by

View all comments

6

u/Knaapje Apr 25 '21

Nope, some languages are compiled (like C), and some are interpreted (like Python). There are also some intermediate stages where source code is compiled to a bytecode which is interpreted (for example Java).

7

u/teraflop Apr 25 '21

I'm not sure why you're being downvoted, because this is correct (or at least a lot more correct than the current top-voted comment).

6

u/Knaapje Apr 25 '21

I have no clue either. People see a downvoted comment and downvote for no reason I guess? Oh well.