The Gnu C Compiler
Upcoming SlideShare
Loading in...5
×
 

The Gnu C Compiler

on

  • 2,264 views

 

Statistics

Views

Total Views
2,264
Views on SlideShare
2,241
Embed Views
23

Actions

Likes
0
Downloads
33
Comments
0

1 Embed 23

http://www.slideshare.net 23

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

The Gnu C Compiler The Gnu C Compiler Presentation Transcript

  • The GNU C Compiler José Dapena Paz
  • The GNU C Compiler Tutorial based on this book: An introduction to GCC for the GNU Compilers gcc and g++ Brian Gough This is available on network. More information on: http://www.network-theory.co.uk/gcc/intro/
  • Goals of this tutorial ● Understand how to compile a program. ● Use basic compiler options for optimisation and debugging.
  • Compiling a C program Compiling a C program: $ gcc -Wall hello.c -o hello Recommendation: use always -Wall: ● Nested comments ● Incorrect printf/scanf formats ● Unused variables ● Usage of implicit (non-declared) functions ● Function return types. ● Other checks... (see GCC reference manual).