answersLogoWhite

0

More answers
User Avatar

Wiki User

13y ago

A compiler, in computer programming, is a program that may or may not be written in the language the compiler is written for that takes a program written in the language that the compiler is designed for and spits out another file. In Java, this file is a collection of "bytecodes", or a program for the JVM(Java Virtual Machine). This is the same in C, but the program is turned into an executable file. Other languages in which the compiler spits out an executable file are FORTRAN, COBOL, C++, and many others.

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

C is a compiled programming language. You can not run your program using the source code file.

Compiler does the binary code from source files.

First, it runs the preprocessor, which removes comments and processing directives that begin with `# '.

Then, the compiler converts the program text into an object file. At this stage, the compiler optimizes a program, that it takes up less space, or to work faster (depending on compiler settings).

Then, it runs the linker, which assembles the executable file from object files (files).

C has many compilers for various platforms.

PS I'm sorry if there are grammatical errors, I'm not a native speaker.

This answer is:
User Avatar

User Avatar

Wiki User

8y ago

Strangely enough we use a C compiler. However, C has evolved through several standards over the years so it is important you use the latest standard when writing code and use the appropriate standards-compliant compiler to compile that code. Moreover, compilers are platform-dependent and each platform has several implementations, so it is important to avoid compiler-dependencies if you want to ensure code is portable.

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

Translates from source program (*.c) to object code (*.obj or *.o).

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

Nothing. Compiler is not a part of the program, it is a separate program that translates from source to object code (or Assembly).

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the role of the Compiler in a C program?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How program can be complied in c?

C programs can be compiled with a C compiler. Are you surprised?


C program on left factoring in compiler design?

how to create a c program for left factoring.


What is a c compiler?

compiling program, compiler - (computer science) a program that decodes instructions written in a higher order language and produces an assembly language program


How do you compile a c program in windows OS?

First, install a C-compiler.


What is the use of c compiler in windows?

The c compiler in Windows converts the binary code from source files. C is a compiled programming language and it needs to be converted for the program to run.

Related questions

What would be the purpose to download a c compiler?

A C Compiler is a program for computers that can be use for programming and deciphering languages. The C Compiler program has been around for several years and is easy to use.


What is compiler hints?

compiler hints is a assurance to detecter of the result path.it creates a role of identifier to check the program when the program is executing.


How program can be complied in c?

C programs can be compiled with a C compiler. Are you surprised?


C program on left factoring in compiler design?

how to create a c program for left factoring.


What is the compiler that is used in C?

A program that translates source program into object code.


What is a c compiler?

compiling program, compiler - (computer science) a program that decodes instructions written in a higher order language and produces an assembly language program


How do you compile a c program in windows OS?

First, install a C-compiler.


What translator is needed for C programming language?

To translate the C source code program, you need a program called a "C compiler".


Is c an application or software?

"C" is a programming language. It is implemented by writing a program using the C syntax and then translated by a compiler, which is an application program.


How a c compiler work?

compiler is just translator it translates the our source program to equivalent langauage,so computer can easily understand and compile that program efficiently................


What is the use of c compiler in windows?

The c compiler in Windows converts the binary code from source files. C is a compiled programming language and it needs to be converted for the program to run.


How can you turn a C plus plus program into a dot exe to run on a PC without a compiler?

To make C++ code into an executable program, you need a compiler. Compilation of a program doesn't have to be on the same computer as the one it's intended to be used on.