Contentsix
Chapter3
Compilers and Assemblers43
3.1Introduction to GNU C and C++ Compilers44
3.1.1Languages Supported by GCC44
3.1.2New Features in GCC 3.x46
3.2Installing GNU Compiler48
3.2.1Downloading48
3.2.2Building and Installing GCC48
3.2.3Environment Variables54
3.2.4Post-Installation Tasks56
3.2.5What Not to Do when Installing Development Tools58
3.3Compiling a Program58
3.3.1Simple Compilation59
3.3.2Default File Types60
3.3.3Compiling to Intermediate Levels61
3.3.4Compilation with Debug Support63
3.3.5Compilation with Optimization64
3.3.6Static and Dynamic Linking65
3.3.7Compiling Source Code for Other Languages66
3.3.8Summary of gcc Options70
3.4Linking a program91
3.5Assembling a Program91
3.6Handling Warning and Error messages92
3.7Include files92
3.8Creating Libraries92
3.9Standard Libraries93
3.10Compiling Pascal Programs94
3.10.1Using Free Pascal (fpc)95
3.10.2Using GNU Pascal96
3.11Compiling Fortran Programs96
3.12Other Compilers98
3.12.1Smalltalk98
3.12.2Oberon98
3.12.3Ruby98
3.13References and Resources98
Chapter4
Using GNU make101
4.1Introduction to GNU make102
4.1.1Basic Terminology103