top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

What is a compiler in c, please explain in detail?

+2 votes
80 views

I want to know about this.

posted Jun 8, 2015 by Syed Baadshah

Share this question
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button
Not sure about your question, may be you are looking for possible C compilers here is the list -
GCC
Turbo C
C99
AMPC
Aztec C
Amsterdam Compiler Kit
CCS C Compiler
Clang
CodeWarrior
CParser/libFirm
DeSmet-C
Digital Mars
Dignus Systems/C
Edison Design Group
Hippo-C
IAR C/C++ Compilers
Interactive C
LabWindows/CVI
Lattice C
lcc
Mac C
Mark Williams C
Micro-C Compiler (mcc)
Micro C Compiler (mcc)
MikroC Compiler
MPW C
Neatcc
Nwcc
Open64
Open Watcom
Orange C compiler
Pelles C
PGCC
Portable C Compiler
Power C
QuickC
RCC (RCOR C Compiler)
Ritchie C Compiler(PDP-11)
SAS/C
SCORE C (tcc)
Small-C
Smaller C
Small Device C Compiler
SubC
THINK C, Lightspeed C
Tiny C Compiler
VBCC
Virtual-C IDE
Wind River (Diab) Compiler
XL C
MCP Compiler
I think question is related to general concepts of compiler.

1 Answer

0 votes

A compiler is a special program that processes statements written in a particular programming language and turns them into machine language or "code" that a computer's processor uses. Typically, a programmer writes language statements in a language such as Pascal or C one line at a time using an editor . The file that is created contains what are called the source statements . The programmer then runs the appropriate language compiler, specifying the name of the file that contains the source statements.

When executing (running), the compiler first parses (or analyzes) all of the language statements syntactically one after the other and then, in one or more successive stages or "passes", builds the output code, making sure that statements that refer to other statements are referred to correctly in the final code. Traditionally, the output of the compilation has been called object code or sometimes an object module . (Note that the term "object" here is not related to object-oriented programming .) The object code is machine code that the processor can process or "execute" one instruction at a time.

More recently, the Java programming language, a language used in object-oriented programming , has introduced the possibility of compiling output (called bytecode ) that can run on any computer system platform for which a Java virtual machine or bytecode interpreter is provided to convert the bytecode into instructions that can be executed by the actual hardware processor. Using this virtual machine, the bytecode can optionally be recompiled at the execution platform by a just-in-time compiler .

Traditionally in some operating systems, an additional step was required after compilation - that of resolving the relative location of instructions and data when more than one object module was to be run at the same time and they cross-referred to each other's instruction sequences or data. This process was sometimes called linkage editing and the output known as a load module .

A compiler works with what are sometimes called 3GL and higher-level languages. An assembler works on programs written using a processor's assembler language.

answer Jun 11, 2015 by Shivaranjini
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...