answersLogoWhite

0

Okay, heres basically how it works-

1. The preprocessor reads all the includes/imports, macros, and other directives.

2. The compiler takes the source, and translates it into assembler language.

3. The assembler takes the code generated by the compiler, and makes an assembly listing with offsets, and then stores this in object files.

4. The linker links together these object files into a single file (EXE file)

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

How do you convert the source code into executable code by double clicking on it?

There's no such thing as 'Executable Code'! The source code is compiled and the final result is an executable.


What are the differences between linkers and loaders?

linker.....>(giving Linlk to one another)its a set of instruction/code that ll link all the source code/file to executable file.Loader ....> (Loading file for execution)it loads all the source files into an executeable file.....


What is the use of programming?

The compiler converts source code (the stuff the programmer wrote and is human readable) and converts it to machine code that the computers CPU can understand. The conversion is used to make an executable program. The compiler can also make libraries but libraries are not executable by them selves.


What the uses of c programs?

The compiler converts source code (the stuff the programmer wrote and is human readable) and converts it to machine code that the computers CPU can understand. The conversion is used to make an executable program. The compiler can also make libraries but libraries are not executable by them selves.


What is the difference of source code object code and pseudo code?

Source code is a sequence of executable instructions written in a particular language. Pseudo code is a sequence of non-executable instructions. It is also called algorithm written in plain English


How do you modify computer executable files?

In general you do not. Nearly all executable files are coded in a computer programming language, and then compiled into executable files. So to modify an executable, you would need the source code for the program, you would modify the source code and then recompile into a NEW version of the executable. Linux does provide for an executable script file, but these are more scripts than executable files.


What do you mean by programming language?

A programming language is a symbolic language that a computer programmer uses to write computer program source code. Source code is non-executable code and must be translated into machine code. A computer can be programmed to perform this conversion and thus produce the required machine code.


What do you mean programming language?

A programming language is a symbolic language that a computer programmer uses to write computer program source code. Source code is non-executable code and must be translated into machine code. A computer can be programmed to perform this conversion and thus produce the required machine code.


Why is there a need for compiler?

Compilers are needed to convert human readable source code into machine executable code.


What is loaders and linkers?

A linker combines one or more object files and possible some library code into either some executable, some library or a list of error messages. A loader reads the executable code into memory, does some address translation and tries to run the program resulting in a running program or an error message (or both).


How do you convert .c extension to .exe?

To convert source code (.c file) to an executable (.exe) file you have to use a compiler, which is a translator of source code to machine code.


What is responsible for producing the object file during the transformation of source code to an executable?

Compiler.