C compiler-ide

12
C Compilers & IDEs In the name of God

Transcript of C compiler-ide

Page 1: C compiler-ide

CCompilers & IDEs

In the name of God

Page 2: C compiler-ide

Programmer

C Compiler

OS &

CPU

Beyond Our

Scope

Page 3: C compiler-ide

IDEs

Integrated Development Environment They have all the tools integrated

− Editor− Compiler− Debugger− [Publisher]− [Documentaries ]

Page 4: C compiler-ide

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

Page 5: C compiler-ide

Famous Compiler + Debugger Microsoft C/C++ compiler [ cl.exe ]

Old microsoft QuickC + Microsoft C/C++ GNU GCC – G++ Compiler | gdb 3.2 , 4.0

[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]

Page 6: C compiler-ide

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 ]

• int *rint[,] = new int *[10, 10];

gcc:•long long• <?= and >?=

Page 7: C compiler-ide

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

Page 8: C compiler-ide

Dev-CPP

Free-OpenSource-GCC base [ included ] Compatible with gcc & gdb For windows! CVS support

Page 9: C compiler-ide

Eclipse

Sponsored by IBM IDE for Java ( mostly )/ Cpp/ Python/ GWT … For both Windows and Linux

Page 10: C compiler-ide

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.

Page 11: C compiler-ide

Linux/Unix Environment

The programmer’s heaven!

Birthplace of GCC.

KDeveloper! Emacs [ just Editor + gdb ] VIM [ just Editor + make ]

Page 12: C compiler-ide

Additional Resource:

Deitel & Deitel C++ How to program − Chapter 1 Section 14 and 16

DEITEL® DIVE INTO™ Series [www.deitel.com/books/downloads.html ]

MSDN TLDP [ www.tldp.org ]