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

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

 
0
  #11
Oct 20th, 2008
did anyone ever hear about ucc?
I am from China. I love computer science!
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
  #12
Oct 20th, 2008
Originally Posted by jbennet View Post
from my computer science book;
Originally Posted by jbennet's 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.
You should try reading what you quoted: "it has become common practice to implement a compile in the language it compilers." The first compilers were written in assembly.

And when writing a compiler, there is (a) no reason to drop down in C to write some parts, and (b) absolutely no reason you'd write parts of it in assembly.

For example, the Java HotSpot JIT compiler is written in C++, LLVM is written in C++, most Scheme compilers are written in Scheme, SBCL is written in Common Lisp, GHC is written in Haskell, and Wirth's Pascal compiler was written in Pascal... need I go on? Using a low level language like C, or worse, assembly, for something like a compiler, would not make any sense.
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
  #13
Oct 21st, 2008
Yep! It may be what you're looking for idk
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