Thinking in C and *nix (CSC 295/282 2014S) : Outlines

Outline 05: Compilation, Macros, and the C Preprocessor


Held: Thursday, 20 February 2014

Back to Outline 04 - Decoding Scripts. On to Outline 06 - More Bash.

Summary

We consider the steps in compilation, focusing primarily on the preprocessor.

Related Pages

Overview

Administrivia

A C Project "Ecosystem"

If we're going to talk about C, we should think about the structure of a typical project. What do we expect to have? We'll look at Sam's traditional model ofo the project

Steps in Compilation

Including Files

Playing with Macros

CPP Conditionals

Detour: Standard Header File Format

The Preprocessor and the Command Line

Some Great Preprocessor Hacks

Copyright (c) 2013-14 Samuel A. Rebelsky.

Creative Commons License

This work is licensed under a Creative Commons Attribution 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by/3.0/ or send a letter to Creative Commons, 543 Howard Street, 5th Floor, San Francisco, California, 94105, USA.