I'm pretty new to computer architecture. My understanding is, the compiler converts high level coding language to instructions which is then translated to machine code by the assembler in assembly language. so what exactly does the assembly language do. Why don't we just have the assembler. Thanks in advance.
Asked
Active
Viewed 218 times
0
-
2The instructions produced by the compiler (in some cases, not all compilers generate assembly) are the assembly code. You can also hand-write assembly. – Thomas Jager Sep 23 '21 at 22:02
-
3Assembly *language* is the input language for an assembler. When you say *Why don't we just have the assembler*, you could just as easily ask "Why don't we just have a C compiler, what's up with all these programs written in C?" – Peter Cordes Sep 23 '21 at 22:17
-
Does this answer your question? [Do programming language compilers first translate to assembly or directly to machine code?](https://stackoverflow.com/questions/845355/do-programming-language-compilers-first-translate-to-assembly-or-directly-to-mac) – smitop Sep 23 '21 at 23:09
-
1The question in your title doesn't match the question in the body of your post. Please clarify. – user207421 Sep 24 '21 at 01:55