What converts Assembly language to machine code -
I'm new to programming and I started with the C ++ language, as far as I know that C ++ Language is changed into assembly language C ++ compiler (formerly: Visual Studio), but I tried to convert the assembly language to machine code to understand and execute the computer but I could not find any answer.
So the question is, where and how the assembly language turns into machine code? Any kind of compiler integrated into the OS?
Thanks in advance.
Some compilers (like GNU) change the code in the assembly code into C / C ++ code. A tool called "codlar" converts assembly code into machine code, and a device called "linker" adds several machine-code files into a single executable (.exe file under Windows) file. Most of these compilers allow you to write the resulting codec code in a file so that you can view or modify the assembler code.
The assembler and linker are part of a series of tools, which means that they are usually distributed with the compiler.
Some compilers (like Microsoft) however convert the C / C ++ code directly into machine language, so no assembler is required. Many of these compilers are not able to make assembler code so you can not write assembler code in one file.
Anyway: There are even compilers (not for C / C ++ but for other programming languages) who directly create .EXE files, so no linker is necessary.
Comments
Post a Comment