[LLVMdev] recommendation books on code generation?

David Tweed david.tweed at arm.com
Thu Apr 4 03:12:05 PDT 2013


I've been told by one person that they're scheduled to give a very practical
compiler university course using LLVM next year, so I was pretty sure that
there must be several courses elsewhere in the world that have already been
given. Looks like I was wrong about that.
-----Original Message-----
From: dag at cray.com [mailto:dag at cray.com] 
Sent: 03 April 2013 16:25
To: David Tweed
Cc: 'Reed Kotler'; llvmdev at cs.uiuc.edu
Subject: Re: [LLVMdev] recommendation books on code generation?

"David Tweed" <david.tweed at arm.com> writes:

> I don't know of a book, but as a suggestion: is there anyone who's
> teaching a course on compilers using LLVM who has the lecture notes
> (or even better actual lectures) online?

The LCC book (A Retargetable C Compiler: Design and Implementation
[Addison-Wesley, 1995, ISBN 0805316701, ISBN-13 9780805316704]) has very
good descriptions of pattern-matching instruction selectors and simple
register allocators.  LLVM doesn't work exactly the same way but the
concepts are similar enough to translate fairly well.

                               -David








More information about the llvm-dev mailing list