| | |
did anyone ever debug a c/c++ compiler?
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Oct 2008
Posts: 43
Reputation:
Solved Threads: 4
•
•
•
•
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.
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.
![]() |
Similar Threads
- help to debug my code (C++)
- Debug (C++)
- Conditional Compiler Directive? (C#)
- Old School Compiler vs New Compiler (C++)
- Want to remove debug information (Java)
- 32bit c++ compiler (C++)
Other Threads in the C++ Forum
- Previous Thread: Some sort of logical error
- Next Thread: Need help removing number from an array
| Thread Tools | Search this Thread |
api array arrays based beginner binary bitmap c++ c/c++ calculator char class classes code compile compiler console conversion count delete deploy desktop directshow dll download dynamic dynamiccharacterarray encryption error file forms fstream function functions game getline givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux list loop looping loops map math matrix memory news node output parameter pointer problem program programming project proxy python read recursion recursive reference return rpg string strings struct temperature template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets





