943,694 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 16027
  • C++ RSS
You are currently viewing page 1 of this multi-page discussion thread
Sep 11th, 2007
0

Make C++ Compiler

Expand Post »
Hi,
How can i make c++ compiler under windows or Linux.
Similar Threads
Reputation Points: 10
Solved Threads: 1
Light Poster
fzafarani is offline Offline
33 posts
since Aug 2007
Sep 11th, 2007
0

Re: Make C++ Compiler

What do you mean by "make C++ compiler".
I hope for your sake that you are not going to write your own C++ compiler.
So assuming that you want a C++ compiler that works under Linux and Windows,
Windows -Visual C++, DevC++ (google and you will find links to download these )
Linux - GCC ( comes with many linux distributions )
Moderator
Reputation Points: 572
Solved Threads: 115
Mentally Challenged Mod.
WolfPack is offline Offline
1,559 posts
since Jun 2005
Sep 11th, 2007
0

Re: Make C++ Compiler

Click to Expand / Collapse  Quote originally posted by WolfPack ...
What do you mean by "make C++ compiler".
I hope for your sake that you are not going to write your own C++ compiler.
So assuming that you want a C++ compiler that works under Linux and Windows,
Windows -Visual C++, DevC++ (google and you will find links to download these )
Linux - GCC ( comes with many linux distributions )

Yes, I want to write my own C++ compiler, I've seen some e-books on internet but those are not free!
URL Link: http://www.bigwebmaster.com/95.html
Reputation Points: 10
Solved Threads: 1
Light Poster
fzafarani is offline Offline
33 posts
since Aug 2007
Sep 11th, 2007
0

Re: Make C++ Compiler

Have you seen this one ?

http://scheme2006.cs.uchicago.edu/11-ghuloum.pdf

Did you search this forum? this topic has been discussed already and there are more links to be had there:

http://www.daniweb.com/forums/thread31222.html
Reputation Points: 262
Solved Threads: 68
Veteran Poster
hollystyles is offline Offline
1,181 posts
since Feb 2005
Sep 11th, 2007
0

Re: Make C++ Compiler

Click to Expand / Collapse  Quote originally posted by fzafarani ...
Yes, I want to write my own C++ compiler
Good luck Unless you have a Ph.D. in computer science and mathametics plan to spend the next 20 or so years writing it.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Ancient Dragon is online now Online
21,950 posts
since Aug 2005
Sep 11th, 2007
0

Re: Make C++ Compiler

Quote ...
Good luck Unless you have a Ph.D. in computer science and mathametics plan to spend the next 20 or so years writing it.
Writing a stable production quality compiler single handedly? yes I agree with these setiments. But, we shouldn't put the OP off too readily. Researching and creating a limited compiler that works on a subset of a chosen language is a very beneficial learning excercise for the computer engineer / software developer.
Last edited by hollystyles; Sep 11th, 2007 at 9:16 am.
Reputation Points: 262
Solved Threads: 68
Veteran Poster
hollystyles is offline Offline
1,181 posts
since Feb 2005
Sep 11th, 2007
0

Re: Make C++ Compiler

Really, there are enough compilers out there already.... Try something else, perhaps adding to a compilers library
Reputation Points: 10
Solved Threads: 0
Light Poster
spankyg is offline Offline
38 posts
since Mar 2007
Sep 11th, 2007
0

Re: Make C++ Compiler

>Researching and creating a limited compiler that works on a subset of a
>chosen language is a very beneficial learning excercise for the computer
>engineer / software developer.
Writing a compiler is a beneficial learning exercise, but not a C++ compiler. That's like saying that a hand made tool shed is a beneficial learning exercise, and then trying to build a skyscraper. There's levels of difficulty when it comes to compilers, and C++ is right at the top. Even if you restrict yourself to an extremely limited subset of the language, you still have to deal with complicated mess of the language grammar.

>How can i make c++ compiler under windows or Linux.
I'd start by looking at the code for an existing C++ compiler. GCC, for example. That should give you an idea of what's involved.
Administrator
Reputation Points: 6442
Solved Threads: 1393
Bad Cop
Narue is offline Offline
11,807 posts
since Sep 2004
Sep 11th, 2007
0

Re: Make C++ Compiler

what are C compilers written in?

C?

Assembley?
Moderator
Featured Poster
Reputation Points: 1764
Solved Threads: 574
Moderator
jbennet is offline Offline
16,501 posts
since Apr 2005
Sep 11th, 2007
0

Re: Make C++ Compiler

Click to Expand / Collapse  Quote originally posted by jbennet ...
what are C compilers written in?

C?

Assembley?

which came first: the chicken or the egg!!
Reputation Points: 152
Solved Threads: 39
Master Poster
Killer_Typo is offline Offline
778 posts
since Apr 2004

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