944,138 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 16063
  • C++ RSS
You are currently viewing page 2 of this multi-page discussion thread; Jump to the first page
Sep 11th, 2007
0

Re: Make C++ Compiler

>what are C compilers written in?
C compilers tend to also be C++ compilers, and they're generally written primarily in C or C++.
Administrator
Reputation Points: 6442
Solved Threads: 1393
Bad Cop
Narue is offline Offline
11,807 posts
since Sep 2004
Sep 12th, 2007
0

Re: Make C++ Compiler


which came first: the chicken or the egg!!
In case of Borland's compilers, they're written mostly in Pascal.
And that includes their Pascal compilers...

They wrote a compiler stub that could compile a minimal subset of the intended language in machine code or Assembly, used that to compile a compiler that could do a bit more of the language, and so on until they had one that could compile the entire language specification.

When they had that they could use that compiler to compile compilers for other languages like C++ and C#.
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004
Sep 12th, 2007
0

Re: Make C++ Compiler

What is machine code written in logic gates?
Featured Poster
Reputation Points: 1536
Solved Threads: 431
Posting Expert
iamthwee is offline Offline
5,865 posts
since Aug 2005
Nov 3rd, 2009
-2

Truly chicken-egg dilemma ...but not 4 u

Don't worry. u r not writing world's *FIRST* compiler. u can use VC++, Dev-C++, Borland, .Net, Java, or any other language that can process text and can call OS API's 2 write ur compiler.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Me_Nit is offline Offline
3 posts
since Nov 2009
Nov 3rd, 2009
-1
Re: Make C++ Compiler
Click to Expand / Collapse  Quote originally posted by Me_Nit ...
Don't worry. u r not writing world's *FIRST* compiler. u can use VC++, Dev-C++, Borland, .Net, Java, or any other language that can process text and can call OS API's 2 write ur compiler.
Don't you think it is awkward to write reply for post over 2 years old where discussion died and problem is either solved or forgotten?
Moderator
Featured Poster
Reputation Points: 2786
Solved Threads: 874
Code tags enforcer
peter_budo is offline Offline
6,659 posts
since Dec 2004
Nov 3rd, 2009
0

Re: Making C/C++ compiler

Click to Expand / Collapse  Quote originally posted by peter_budo ...
Don't you think it is awkward to write reply for post over 2 years old where discussion died and problem is either solved or forgotten?
I don't find anything wrong in it. May be someone in future will b helped by it. U don't know! And what is lost in the process?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Me_Nit is offline Offline
3 posts
since Nov 2009
Nov 3rd, 2009
0
Re: Make C++ Compiler
Hello superiors.
Maybe, the the poster(one who started the thread) was talking about DSLs....like Groovy.
Reputation Points: 11
Solved Threads: 7
Junior Poster
abhi_elementx is offline Offline
118 posts
since Dec 2007
Sep 17th, 2010
0
Re: Make C++ Compiler
plz tell me how to creat comipler???
Reputation Points: 10
Solved Threads: 0
Newbie Poster
sourav garg is offline Offline
1 posts
since Sep 2010
Sep 17th, 2010
0
Re: Make C++ Compiler
didn't you bother to read the thread???
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2283
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,963 posts
since Aug 2005
Oct 10th, 2010
0
Re: Make C++ Compiler
Click to Expand / Collapse  Quote originally posted by jbennet ...
what are C compilers written in?

C?

Assembley?
i think in c...
Reputation Points: 10
Solved Threads: 0
Newbie Poster
akabir is offline Offline
1 posts
since Oct 2010

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: Having an error compiling a code with 3 files
Next Thread in C++ Forum Timeline: do-while loop and increasing the size of an array





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


Follow us on Twitter


© 2011 DaniWeb® LLC