943,879 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 1188
  • C++ RSS
You are currently viewing page 1 of this multi-page discussion thread
Oct 20th, 2008
0

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

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
panpanf is offline Offline
18 posts
since Oct 2008
Oct 20th, 2008
0

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

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.
Reputation Points: 193
Solved Threads: 32
Posting Whiz in Training
grumpier is offline Offline
206 posts
since Aug 2008
Oct 20th, 2008
0

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

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.
Moderator
Featured Poster
Reputation Points: 1767
Solved Threads: 574
Moderator
jbennet is offline Offline
16,519 posts
since Apr 2005
Oct 20th, 2008
-1

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

Click to Expand / Collapse  Quote originally posted by jbennet ...
The key parts of most compilers are written in C itself, or in ASM.
Bullshit.
Reputation Points: 29
Solved Threads: 4
Light Poster
shrughes is offline Offline
44 posts
since Oct 2008
Oct 20th, 2008
0

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

Quote ...
Bullshit.
from my computer science book;

Quote ...
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.
Moderator
Featured Poster
Reputation Points: 1767
Solved Threads: 574
Moderator
jbennet is offline Offline
16,519 posts
since Apr 2005
Oct 20th, 2008
0

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

Click to Expand / Collapse  Quote originally posted by shrughes ...
Bullshit.
Then what are they written in ? MonkeyLanguage?
kux
Reputation Points: 66
Solved Threads: 11
Junior Poster
kux is offline Offline
119 posts
since Jan 2008
Oct 20th, 2008
1

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

>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.
Administrator
Reputation Points: 6442
Solved Threads: 1393
Bad Cop
Narue is offline Offline
11,807 posts
since Sep 2004
Oct 20th, 2008
0

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

i didnt say that you couldnt, i said "most compilers" which is true.
Last edited by jbennet; Oct 20th, 2008 at 11:18 am.
Moderator
Featured Poster
Reputation Points: 1767
Solved Threads: 574
Moderator
jbennet is offline Offline
16,519 posts
since Apr 2005
Oct 20th, 2008
0

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

You might want to check out this.
Reputation Points: 104
Solved Threads: 27
Posting Whiz in Training
dmanw100 is offline Offline
239 posts
since Apr 2008
Oct 20th, 2008
0

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

openwatcom!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
panpanf is offline Offline
18 posts
since Oct 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Some sort of logical error
Next Thread in C++ Forum Timeline: Need help removing number from an array





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC