C/C++ Compilers and IDEs

In the name of God
C
Compilers & IDEs
When faced with a decision, I always
ask, "What would be the most fun?"
Peggy Walker
© 2006 NematAllah Ahmadyan.
Introduction to Programming course [ce153c]
Programmer
C
Compiler
OS
&
CPU
Beyond
Our
Scope
IDEs


Integrated Development Environment
They have all the tools integrated
• Editor
• Compiler
• Debugger
• [Publisher]
• [Documentaries ]
Famous IDEs







Microsoft Visual Studio 2005
Dev-Cpp 5
Emacs/Vim + gcc + gdb
Eclipse IDE 3.2
Borland Turbo C / C++ Builder
Metrowerks CodeWarrior \
KDeveloper
Famous Compiler + Debugger

Microsoft C/C++ compiler [ cl.exe ]

GNU GCC – G++ Compiler | gdb 3.2 , 4.0
• Old microsoft QuickC + Microsoft C/C++
[Win,Linux,Unix,Solaris]


Intel C/C++ compiler [Win,Linux]
Borland TurboC / C Compiler 5.6.4 [Windows] + Kylix
3.0 [Linux]




Watcom C, Open Watcom
Apple GCC 3.3, 4.0 on Mac OS X.
HP C++ for Tru64 UNIX 7.1.
Metrowerks CodeWarrior 9.5 [OS X, Windows]
Know your Compiler

Use the most of your compiler

Be Aware of compiler specific syntax, which is not supported by
ANSI/ISO C
•
Example:
•
Microsoft C/C++ 8 : [ defining an array trough cli ]
•
• gcc:
int *rint[,] = new int *[10, 10];
•long
•
long
<?= and >?=
Microsoft Visual Studio 2005







It’s from Microsoft.
Uses Microsoft .net C/C++ compiler
Based on .net 2
Also support other language [ basic, J#, C#, Pascal! … ]
Too expensive! But first class IDE.
Complete suite [ compiler, framework, Editor,
Debugger, Publisher, MSDN, etc.]
Compiler command:
•
•
cl main.c
cl /c main.c
Dev-CPP




Free-OpenSource-GCC base [ included ]
Compatible with gcc & gdb
For windows!
CVS support
Eclipse

Sponsored by IBM
IDE for Java ( mostly )/ Cpp/ Python/ GWT …

For both Windows and Linux

TurboC




/
C++Builder
Made by Borland
Small & Easy but inefficient
For DOS, altough it runs under windows too.
The borland company was bought by
Microsoft, nowadays a new version of
C++Builder has been released.
Linux/Unix Environment

The programmer’s heaven!

Birthplace of GCC.

KDeveloper!
Emacs [ just Editor + gdb ]
VIM
[ just Editor + make ]


Additional Resource:

Deitel & Deitel C++ How to program

DEITEL® DIVE INTO™ Series
[www.deitel.com/books/downloads.html ]
MSDN
TLDP [ www.tldp.org ]


• Chapter 1 Section 14 and 16