Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

There Are Various C Compilers Are Variables. Some of These Are

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

C compiler

There are various c compilers are variables. Some of


these are:
S.N. Name Microprocessor OS
1 Turbo c 3.0 8086 MS DOS
2 ANSIC C 80386 LINUX
3 Borland C 4.0 80386 WINDOW
4 Microsoft C 8086 MS DOS
5 Visual C++ 80386 WINDOW

Note: 8086 is 16 bit microprocessor while 80386 is 32
bit microprocessor.


Note: Different versions of compilers are based on the
different microprocessors and support many OS. It is
always changing. As a programmer you should know the
microprocessor name, its world length etc. which your
compiler is based on. Since c language is platform
dependent. In preprocessor section you will know how to
make a program as much as platform independent.

Turbo c compiler

Turbo c is an IDE of c programming language created
by Borland. Turbo C 3.0 is based on MS DOS
operation system. It is one of the most popular c
compilers. It uses 8086 microprocessor which is 16
bit microprocessor. It has 20 address buses and 16
data bus. Its word length is two byte.


Size of data types in Turbo C 3.0:


Data type Size
short int 2
int 2
long int 4
char 1
float 4
double 8
long double 10

Byte ordering : Little Endianness
Default pointer : Near
Default memory model : Small


To compile a c program: Alt + F9
To run a c program: Ctrl + F9

Turbo C 4.5 is based on Microsoft window operating
system. It is 32 bit compilers.
Size of data type in Turbo C 4.5:

Data type Size (Byte)
short int 2
int 4
long int 4
char 1
float 4
double 10
long double 12

Default pointer: Far
Default memory model: Compact

Difference between TSR and TSO program

TSO means terminate but stay outside. It is that
program, which release the main memory after the
execution of the program. Example ms paint, notepad,
turbo c compilers etc.

TSR means terminate but stay residence .It is those
program, which after the execution of the program
does not release the RAM (main memory).e.g.
antivirus.
Difference between .com program and .exe program in c programming
language

Both .com and .exe program are executable
program but .com program execute faster
than .exe program. All drivers are .com
program. .com file has
higher preference than .exe
For example:
Open the command prompt in window OS.
(Type CMD in Run)
In the command prompt type notepad and
press enter key you will get the notepad.
Since it executes notepad.exe


Repeat the same task but now first create
any .com file in the same working
directory. We can create it as open the
notepad save it as notepad.com, set save
as type is All files or we can create the
.com file from command prompt.


Then type notepad in command prompt and
press the enter key you will get error
message like:
C:\notepad.com is not a valid Win32
application
.



It proves that .com has higher precedence
than .exe program.

Com file is binary execute used in MS
DOS. Com program keeps only code and
data. It stores code and data in one
segment. In Turbo C memory model should
tiny to create .com program. We
will discuss later how to create .com
file in in turbo c.

You might also like