Large Program Development

Prof. Brian D. Davison

Computer Science & Engineering, Lehigh University

Announcements

Large Program Development

Multiple Source Files

Sharing State

Let's demonstrate this...

The Preprocessor

Defining constants and macros

  • Macros are faster than functions (no stack manipulations) but may use more space (since each function call is expanded in place).
  • Conditional Compilation

    Common use of conditionals

    Other conditions