lcc, A Retargetable Compiler for ANSI C


Buy from Amazon.com

Subversion access · CVS access
FTP site
Source code
Contributed software · LCC-Win32 · SGI N32 backend
Frequently asked questions
Installation guide · Reporting bugs
Man pages: lcc · bprint
Reviews: comp.compilers (follow-ups: 1, 2)
Errata: Second Printing · First Printing
Related page: C Interfaces and Implementations

Recommended compiler books:
Compilers: Principles, Techniques, and Tools 2/e
Engineering a Compiler
Modern Compiler Implementation in C
Building an Optimizing Compiler
Optimizing Compilers for Modern Architectures
Advanced Compiler Design and Implementation

Download release 4.2: gzip'd tar file (624K) · compress'd tar file (1063K) · ZIP archive (784K).

Download lcc.NET, an lcc 4.2 backend for MSIL: ZIP archive (141K).

lcc is a retargetable compiler for Standard C. It generates code for the ALPHA, SPARC, MIPS R3000, and Intel x86 and its successors. lcc is available for anonymous ftp from ftp.cs.princeton.edu in /pub/packages/lcc; the README file gives the details. Here's what else is available:

lcc is described in A Retargetable C Compiler: Design and Implementation (Addison-Wesley, 1995, ISBN 0805316701, ISBN-13 9780805316704). This book is a detailed tour of the lcc 3.6 source code. The ftp distribution includes the source code for the complete compiler, the code generators for all its targets, and the code-generator generator that produced them. See the preface and table of contents for more details.

The USENET newsgroup comp.compilers.lcc is an unmoderated newsgroup that serves as a forum for all topics related to the installation, use, and development of lcc. You can post messages to comp.compilers.lcc using any USENET newsreader.


Chris Fraser
David Hanson
$Revision: 557 $ $Date: 2007-06-20 06:16:56 -0700 (Wed, 20 Jun 2007) $