Recent

Author Topic: Books on building an object oriented compiler  (Read 1968 times)

valdir.marcos

  • Hero Member
  • *****
  • Posts: 1106
Books on building an object oriented compiler
« on: December 20, 2019, 09:34:19 am »
I am searching for books on building an object oriented compiler, but I could only find:

Object-Oriented Compiler Construction Hardcover – November 29, 1994
Jim Holmes
https://www.amazon.com/Object-Oriented-Compiler-Construction-Jim-Holmes/dp/013630740X/

Compiler Design, 1995
Renhard Wilhelm, Dieter Maurer
This is the first book on compiler design that covers object-oriented, functional, and logic programming languages--as well as imperative languages.
The theory of computer design is covered in depth, but the focus throughout is on tools and implementation techniques which will be of practical use to software developers.
https://books.google.com.br/books/about/Compiler_Design.html?id=oa5QAAAAMAAJ&redir_esc=y

Modern Compiler Implement in C, 2004
Andrew W. Appel
https://www.amazon.com/Modern-Compiler-Implement-Andrew-Appel/dp/0521607655/

Modern Compiler Implementation in Java 2nd Edition, 2007
Andrew W. Appel, Jens Palsberg
https://www.amazon.com/gp/product/052182060X/

Are there any others options or any better options?
« Last Edit: December 21, 2019, 09:02:28 pm by valdir.marcos »

Ñuño_Martínez

  • Hero Member
  • *****
  • Posts: 1186
    • Burdjia
Re: Books on building an object oriented compiler
« Reply #1 on: January 09, 2020, 01:06:20 pm »
Crafting Interpreters by Robert Nystrom. Do not believe the title, the final part uses a op-code based virtual machine, so it is actually a compiler for a virtual machine.
Are you interested in game programming? Join the Pascal Game Development community!
Also visit the Game Development Portal

valdir.marcos

  • Hero Member
  • *****
  • Posts: 1106
Re: Books on building an object oriented compiler
« Reply #2 on: January 10, 2020, 02:07:39 am »
Crafting Interpreters by Robert Nystrom. Do not believe the title, the final part uses a op-code based virtual machine, so it is actually a compiler for a virtual machine.
Thanks for the information.

Besides the footnote "Hand-crafted by Robert Nystrom — © 2015 – 2020", there are no other dates.
Is that book already finished?

soerensen3

  • Full Member
  • ***
  • Posts: 213
Re: Books on building an object oriented compiler
« Reply #3 on: January 10, 2020, 05:11:07 pm »
Quote
What’s the Catch?

The only wrinkle is that I haven’t quite finished writing it.
Lazarus 1.9 with FPC 3.0.4
Target: Manjaro Linux 64 Bit (4.9.68-1-MANJARO)

Ñuño_Martínez

  • Hero Member
  • *****
  • Posts: 1186
    • Burdjia
Re: Books on building an object oriented compiler
« Reply #4 on: January 15, 2020, 12:44:24 pm »
Crafting Interpreters by Robert Nystrom. Do not believe the title, the final part uses a op-code based virtual machine, so it is actually a compiler for a virtual machine.
Thanks for the information.

Besides the footnote "Hand-crafted by Robert Nystrom — © 2015 – 2020", there are no other dates.
Is that book already finished?
Not yet.  Latest update was 15 days ago.  See the GIT repo.
Are you interested in game programming? Join the Pascal Game Development community!
Also visit the Game Development Portal

Thaddy

  • Hero Member
  • *****
  • Posts: 14364
  • Sensorship about opinions does not belong here.
Re: Books on building an object oriented compiler
« Reply #5 on: January 15, 2020, 01:55:18 pm »
Crafting Interpreters by Robert Nystrom. Do not believe the title, the final part uses a op-code based virtual machine, so it is actually a compiler for a virtual machine.
op codes are an abstraction. In reality they can be implemented as hardware instructions (assembler) as well, since that is merely a subset of what op code means.
So such a book is good enough once you grasp the concept of what is meant by "op codes": it includes both virtual and actual processors.
« Last Edit: January 15, 2020, 01:58:14 pm by Thaddy »
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

 

TinyPortal © 2005-2018