Scholarly Resources for CompSci Undergrads

C Programming Language

Quick Tips For gcc Users

The gcc (1) man page can make for daunting reading, and almost no one ever comes to my consulting hour :( so I'm putting some advice about the proper use of the compiler here. Hopefully this will result in students spending less time tracking down small bugs in their programs and make my marking go faster too.

I have an example Makefile (in my notes about encapsulation in C) which shows how to include those flags in all your compiles.

SUMMARY: compile using
gcc -ansi -pedantic -Wall -O


http://www.csd.uwo.ca/~jamie/C/gcc.html
J. Blustein (http://www.csd.uwo.ca/~jamie)

This document is copyright by its author, J. Blustein.

HTML 2.0 Checked!