473,399 Members | 2,278 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Learning Compilers using C++

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
5 1104
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: An Ony | last post by:
Hi, I'm just learning c++ with the book from Bjarne Stroustrup and I just type what is in his book into Visual Studio .NET. Is that a good compiler for that or not? I'm beginning to have my...
4
by: AmateurScripter | last post by:
I'm interested in learning C. What is the best way to learn this language? I know some JavaScript and know HTML very well. I can't afford any programs, but I can get books. What should I do?
90
by: Jhon smith | last post by:
Hi all,Just wondering are there any problems with learning c from older books,as I have picked up some from 1988,1994,1997,1998. By using books of this age(Im on a tight budget)am I going to...
26
by: mfasoccer | last post by:
I am sorry if this is an inappropriate place to put this post, if so please delete it. I am wondering about a few things. Do you guys recommend learning C as a second language, as someone who...
10
by: arlef | last post by:
Hi Guys, When learning a language such as C#, would you say it is better to learn the fundamentals using the command-line compiler and a simple text editor such as notepad compared to using a...
3
by: Niv | last post by:
Hi, I will shortly need to learn C or C++ as a high level hardware description language, modelling hardware at a more abstract level than VHDL. (I'm competent at VHDL & semi-competent at Tcl). ...
53
by: ***** charles | last post by:
Hi all, I would like to know how all of you learned C. Was it books, Internet, human mentor, class or other? later, charles.....
9
by: no | last post by:
Thanks- I intend to learn with Microsoft Tools but my plans are to stay within the embedded industry.
7
by: BubbaT | last post by:
What is the best way to pick up Boost? Thanks BubbaT
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.