If you're not looking to implement one totally from scratch, this could be a good start: http://llvm.org/docs/tutorial/
If you're not looking to implement one totally from scratch, this could be a good start: http://llvm.org/docs/tutorial/