"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
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
On 4 Apr 2013, at 11:12, "David Tweed" <david.tweed at arm.com> wrote:> 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.That was me. I am also planning on writing a book on LLVM for Pearson over the summer. If anyone would be interested in doing technical reviews, please let me know off list. The material for the course will all be available online, so may be usable by other people wanting to teach similar courses. David