By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,332 Members | 1,414 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,332 IT Pros & Developers. It's quick & easy.

Learning Compilers using C++

P: n/a
Hi,
I wish to improve on my skills of writing a compiler. So I would like
to study the compilers that are there and first try to fix simple bugs
in them. Can any one sugges on what compilers I can start? I dont want
to start something complicated..

Nov 6 '06 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Shakti wrote:
Hi,
I wish to improve on my skills of writing a compiler. So I would like
to study the compilers that are there and first try to fix simple bugs
in them. Can any one sugges on what compilers I can start? I dont want
to start something complicated..
The obvious answer would be gcc, but compilers are very complex beasts,
so don't expect an easy ride.

--
Ian Collins.
Nov 6 '06 #2

P: n/a
On 5 Nov 2006 23:54:37 -0800, Shakti wrote:
I wish to improve on my skills of writing a compiler. So I would like
to study the compilers that are there and first try to fix simple bugs
in them. Can any one sugges on what compilers I can start? I dont want
to start something complicated..
OpenWatcom (http://www.openwatcom.org) might be worth a look (and of course,
there is gcc)
Christof

--
http://cmeerw.org sip:cmeerw at cmeerw.org
mailto:cmeerw at cmeerw.org xmpp:cmeerw at cmeerw.org
Nov 6 '06 #3

P: n/a
Ian Collins wrote:
Shakti wrote:
>Hi,
I wish to improve on my skills of writing a compiler. So I would like
to study the compilers that are there and first try to fix simple bugs
in them. Can any one sugges on what compilers I can start? I dont want
to start something complicated..
The obvious answer would be gcc, but compilers are very complex beasts,
so don't expect an easy ride.
GCC is way too big to tackle for the first time. C++ is a complex
language and a C++ compiler is very also very complex. I suggest you to
start with something simpler, like a pascal compiler.

Ben
Nov 6 '06 #4

P: n/a
If you want to hack gcc, read <<gcc internals>first.

Shakti wrote:
Hi,
I wish to improve on my skills of writing a compiler. So I would like
to study the compilers that are there and first try to fix simple bugs
in them. Can any one sugges on what compilers I can start? I dont want
to start something complicated..
Nov 6 '06 #5

P: n/a
Hi,
thanks for the suggestion. Can you send me some link on the PASCLE
compiler...I will try in google but still if you know some thing
specefic?
'Thanks
benben wrote:
Ian Collins wrote:
Shakti wrote:
Hi,
I wish to improve on my skills of writing a compiler. So I would like
to study the compilers that are there and first try to fix simple bugs
in them. Can any one sugges on what compilers I can start? I dont want
to start something complicated..
The obvious answer would be gcc, but compilers are very complex beasts,
so don't expect an easy ride.

GCC is way too big to tackle for the first time. C++ is a complex
language and a C++ compiler is very also very complex. I suggest you to
start with something simpler, like a pascal compiler.

Ben
Nov 9 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.