#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!