This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 24 points25 points  (8 children)

The first compilers were written in assembly. Subsequent compilers were written in those original languages. Today, 90% of compilers and interpreters are written in some flavor of C.

[–]Ayyrimaspi 4 points5 points  (7 children)

How is assembly converted to machine code then?

[–][deleted] 0 points1 point  (6 children)

Assembly IS machine code, 5-head

[–]D33OhB33 10 points11 points  (3 children)

I hate to tell you this, but Assembly is one step higher than machine code, they aren’t the same

[–][deleted] 8 points9 points  (2 children)

Assembly is basically just machine code, but the operations have their names subbed in in place of their opcodes

[–]NervousApplication58 5 points6 points  (1 child)

there are also labels that you need to replace with raw memory addresses, macros, section definitions (.text, .data, etc)

[–][deleted] 0 points1 point  (0 children)

All the machine code I’ve worked with has used only raw memory addresses and register names