did anyone ever debug a c/c++ compiler?

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Oct 2008
Posts: 18
Reputation: panpanf is an unknown quantity at this point 
Solved Threads: 0
panpanf's Avatar
panpanf panpanf is offline Offline
Newbie Poster

did anyone ever debug a c/c++ compiler?

 
0
  #1
Oct 20th, 2008
Is there any open source c/c++ compilers what can be debugged easily? I wanna know more info about the common knowladge about c/c++ compilers.
I am from China. I love computer science!
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 206
Reputation: grumpier has a spectacular aura about grumpier has a spectacular aura about 
Solved Threads: 31
grumpier grumpier is offline Offline
Posting Whiz in Training

Re: did anyone ever debug a c/c++ compiler?

 
0
  #2
Oct 20th, 2008
There are plenty of open source C/C++ compilers. They are fairly complex bits of code, so the notion of "debugged easily" depends on your notion of what is "easy". However, the information on how they work is well documented.

If you want to debug compilers, and you have skills with that, offer your services to the development team of one of the open source compilers.
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 16,212
Reputation: jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all 
Solved Threads: 538
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Moderator

Re: did anyone ever debug a c/c++ compiler?

 
0
  #3
Oct 20th, 2008
The key parts of most compilers are written in C itself, or in ASM.

The open compilers are well documented, but compilers are generally very complex indeed.
Last edited by jbennet; Oct 20th, 2008 at 4:22 am.
If i am helpful, please give me reputation points.
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 43
Reputation: shrughes is an unknown quantity at this point 
Solved Threads: 4
shrughes shrughes is offline Offline
Light Poster

Re: did anyone ever debug a c/c++ compiler?

 
-1
  #4
Oct 20th, 2008
Originally Posted by jbennet View Post
The key parts of most compilers are written in C itself, or in ASM.
Bullshit.
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 16,212
Reputation: jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all 
Solved Threads: 538
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Moderator

Re: did anyone ever debug a c/c++ compiler?

 
0
  #5
Oct 20th, 2008
Bullshit.
from my computer science book;

The first compilers were written in assembly language as building a self-hosting compiler is a bootstrapping problem

Since the 1970s it has become common practice to implement a compiler in the language it compiles and C has historically been a popular choice of implementation language.
If i am helpful, please give me reputation points.
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 119
Reputation: kux is on a distinguished road 
Solved Threads: 10
kux kux is offline Offline
Junior Poster

Re: did anyone ever debug a c/c++ compiler?

 
0
  #6
Oct 20th, 2008
Originally Posted by shrughes View Post
Bullshit.
Then what are they written in ? MonkeyLanguage?
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 7,728
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 737
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Code Goddess

Re: did anyone ever debug a c/c++ compiler?

 
1
  #7
Oct 20th, 2008
>Then what are they written in ? MonkeyLanguage?
You can write the lion's share of a compiler in any language you please. The only real restriction would be the code generator, where you need a language that can write to your target format.
I'm here to prove you wrong.
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 16,212
Reputation: jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all 
Solved Threads: 538
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Moderator

Re: did anyone ever debug a c/c++ compiler?

 
0
  #8
Oct 20th, 2008
i didnt say that you couldnt, i said "most compilers" which is true.
Last edited by jbennet; Oct 20th, 2008 at 11:18 am.
If i am helpful, please give me reputation points.
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 160
Reputation: dmanw100 is on a distinguished road 
Solved Threads: 12
dmanw100's Avatar
dmanw100 dmanw100 is offline Offline
Junior Poster

Re: did anyone ever debug a c/c++ compiler?

 
0
  #9
Oct 20th, 2008
You might want to check out this.
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 18
Reputation: panpanf is an unknown quantity at this point 
Solved Threads: 0
panpanf's Avatar
panpanf panpanf is offline Offline
Newbie Poster

Re: did anyone ever debug a c/c++ compiler?

 
0
  #10
Oct 20th, 2008
openwatcom!
I am from China. I love computer science!
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC