Home  >  Article  >  What is needed to convert a source program written in C language into a target program?

What is needed to convert a source program written in C language into a target program?

尚
Original
2020-04-16 15:28:0010965browse

What is needed to convert a source program written in C language into a target program?

#Converting a source program written in C language into a target program requires compilation software.

Compilation is the translation process from source code (usually a high-level language) to target code (usually a low-level language or machine language) that can be directly executed by a computer or virtual machine.

What converts the source program into target code is a compiler or assembler, which is implemented through compilation software; both compilers and assemblers often rely on linkers, which will be compiled or assembled in different target files respectively. The assembled code is collected into a directly executable file.

In this case, there is a difference between the target code, that is, the machine code that has not yet been linked, and the executable machine code. The linker also links the target program to code for standard library functions, as well as to the resources provided by the computer's operating system (such as storage allocators and input and output devices).

The above is the detailed content of What is needed to convert a source program written in C language into a target program?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn