Category: Compilers

Using the GNU Compiler Collection (GCC)

My image
  • Author: Red Hat, Inc.
  • Format: online HTML
  • Price: free

This manual documents how to use the GNU compilers, as well as their features and incompatibilities, and how to report bugs. It corresponds to GCC version 3.4.4.

Chapters include:

  • Programming Languages Supported by GCC
  • Language Standards Supported by GCC
  • GCC Command Options
  • C Implementation-defined behavior
  • Extensions to the C Language Family
  • Extensions to the C++ Language
  • GNU Objective-C runtime features
  • Binary Compatibility
  • gcov–a Test Coverage Program
  • Known Causes of Trouble with GCC
  • Option Index
  • Keyword Index

http://www.linuxtopia.org/online…gnu_compiler_collection/index.html

An Introduction to GCC

My image
  • Author: Brian Gough
  • Format: online HTML
  • Price: free

This manual provides an introduction to the GNU C and C++ Compilers, gcc and g++, which are part of the GNU Compiler Collection (GCC).

Chapters include:

  • Introduction
  • Compiling a C program
  • Compilation options
  • Using the preprocessor
  • Compiling for debugging
  • Compiling with optimization
  • 7 Compiling a C++ program
  • Platform-specific options
  • Troubleshooting
  • Compiler-related tools
  • How the compiler works
  • Examining compiled files
  • Common error messages
  • Getting help

http://www.network-theory.co.uk/docs/gccintro/

Let's Build a Compiler

Let's Build a Compiler
  • Author: Jack Crenshaw
  • Format: online HTML, zipped HTML
  • Price: free

This book is a non-technical introduction to compiler construction. When you are finished with this tutorial, you will have covered every aspect of compiler construction, designed a new programming language, and built a working compiler.
It would be recommended to install FreeDOS and Turbo Pascal in VMWare, if you want to follow this tutorial.
Chapters include:

  • Introduction
  • Expression Parsing
  • More Expressions
  • Interpreters
  • Control Constructs
  • Boolean Expressions
  • Lexical Scanning
  • A Little Philosophy
  • A Top View
  • Introducing “Tiny”
  • Lexical Scan Revisited
  • Miscellany
  • Procedures
  • Types
  • Back to the Future
  • Unit Construction

http://compilers.iecc.com/crenshaw/
Turbo Pascal 5.5:  http://edn.embarcadero.com/article/20803
FreeDOS: http://www.freedos.org
VMWare: http://www.vmware.com

The GENTLE Compiler Construction System

My image
  • Author: Friedrich Wilhelm Schröer
  • Format: HTML, PDF
  • Price: free

The  GENTLE Compiler Construction System, originally designed in 1989 at the German National Research Center for Information Technolgy, is now in industrial use for fifteen years: The very first system was sold to Nixdorf Computers, who used it to implement their Combined Object-Oriented Language, a  C++ alternative for large mission-critical projects, e.g. in the chemical industry. The first  Gentle system in 2005 was sold to Ritlabs, creators of The Bat, a leading email client.

The  GENTLE Compiler Construction System is available in two editions:

GENTLE 97 was published in 1997 together with the first edition of this manual (Oldenbourg Verlag, Munich and Vienna, 1997)

GENTLE 21 is distributed since 2001 by Metarga and is continuously maintained according to the requirements of its users

This manual covers the common functionality of both editions.

Chapters include:

  • At a Glance
  • Elements of Specifications
  • Describing Data
  • Describing Computations
  • Describing Syntax
  • Using Types and Predicates Written in C
  • Handling Global Information
  • Handling Mutable Information
  • Control Structures
  • Smart Traversal
  • Optimal Rule Selection
  • Special Patterns and Expressions
  • A Summary of Predefined Predicates
  • Organizing Larger Projects
  • Getting Started
  • Language Reference Manual
  • Reflex Reference Manual
  • Library Reference Manual
  • Case Studies

http://gentle.compilertools.net/book/index.html

Compiler Construction

My image
  • Author: Wikibooks
  • Format: online HTML
  • Price: free

The purpose of this Wikibook is to provide practical advice on writing a compiler, together with some working examples of both compilers and interpreters. Some theory is unavoidable, but has been kept to a minimum. If you search the Web for “compiler construction” you will find lots of information and many different approaches. All this book can do is demonstrate a few of the many possible ways of constructing a compiler. After going through this book you should be better able to judge other methods.

Chapters include:

  • Introduction
  • Dealing with Errors
  • Case Study 1 – a Simple Interpreter
  • Lexical Analysis
  • Syntax Analysis
  • Semantic Analysis
  • Intermediate Representation
  • Optimization
  • Code Generation
  • Run-time Considerations
  • Development Environment
  • Testing

http://en.wikibooks.org/wiki/Compiler_Construction