4 Replies - 2125 Views - Last Post: 27 April 2010 - 06:10 PM Rate Topic: -----

#1 jkNuke  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 23
  • Joined: 31-August 09

Writing Compiler

Posted 27 April 2010 - 07:01 AM

I have been looking into compiler design lately out of curiosity and am looking for a good source to turn to for creating a C++ compiler. Does anyone have any suggestions?
Is This A Good Question/Topic? 0
  • +

Replies To: Writing Compiler

#2 muballitmitte  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 174
  • View blog
  • Posts: 470
  • Joined: 05-November 08

Re: Writing Compiler

Posted 27 April 2010 - 07:15 AM

A C++ compiler? Surely you jest. That would be a complex project, that you would not finish. I suggest setting your goals a bit lower and starting to write a syntactical analyser component of a compiler for a simple language and than build from that (I said this because you said that you read smth about compilers so I assumed you have a basic knowledge). You may find this link useful.
edit: a good source of info is web pages of tutors who teach uni compilers courses. Often you will find a lot of stuff accessible from outside of their network.

This post has been edited by muballitmitte: 27 April 2010 - 07:22 AM

Was This Post Helpful? 1
  • +
  • -

#3 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6107
  • View blog
  • Posts: 23,663
  • Joined: 23-August 08

Re: Writing Compiler

Posted 27 April 2010 - 08:12 AM

Martyn.Rae has a number of tutorials in our C++ Tutorials about writing an interpreter, which may be helpful.
Was This Post Helpful? 0
  • +
  • -

#4 jkNuke  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 23
  • Joined: 31-August 09

Re: Writing Compiler

Posted 27 April 2010 - 05:25 PM

I know that I am biting off a lot more than I can chew. That's how I've learned most of what I know though. I'm really interested in any sort of compiler design in general. I'll probably create my own simple language for it like most beginners do. Both links provided extremely helpful.

This post has been edited by jkNuke: 27 April 2010 - 05:26 PM

Was This Post Helpful? 0
  • +
  • -

#5 Oler1s  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 1395
  • View blog
  • Posts: 3,884
  • Joined: 04-June 09

Re: Writing Compiler

Posted 27 April 2010 - 06:10 PM

So you think you can handle this? Start by reading and understanding the dragon book. Come back when done. :)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1