 |
C++Talk.NET C++ language newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Bootstrap Bill Guest
|
Posted: Mon Oct 27, 2003 11:07 pm Post subject: C++ to C |
|
|
Are there any open source C++ compilers that will produce C code? I
understand the first C++ compilers operated this way.
|
|
| Back to top |
|
 |
Jack Klein Guest
|
|
| Back to top |
|
 |
Frank Schmitt Guest
|
Posted: Tue Oct 28, 2003 9:42 am Post subject: Re: C++ to C |
|
|
"Bootstrap Bill" <wrcousert (AT) yahoo (DOT) com> writes:
| Quote: | Are there any open source C++ compilers that will produce C code? I
understand the first C++ compilers operated this way.
|
You might want to have a look at Comeau - it's not open source, but
it's cheap, and AFAIK does exactly what you want
(www.comeaucomputing.com)
HTH & kind regards
frank
--
Frank Schmitt
4SC AG phone: +49 89 700763-0
e-mail: frankNO DOT SPAMschmitt AT 4sc DOT com
|
|
| Back to top |
|
 |
those who know me have no Guest
|
Posted: Tue Oct 28, 2003 10:48 am Post subject: Re: C++ to C |
|
|
in comp.lang.c i read:
| Quote: | "Bootstrap Bill" <wrcousert (AT) yahoo (DOT) com> writes:
Are there any open source C++ compilers that will produce C code? I
understand the first C++ compilers operated this way.
You might want to have a look at Comeau - it's not open source, but
it's cheap, and AFAIK does exactly what you want
|
but note that the code produced isn't intended for human consumption or
later use, so it's not necessarily maintainable (at least not directly).
--
a signature
|
|
| Back to top |
|
 |
Dan Pop Guest
|
Posted: Tue Oct 28, 2003 1:32 pm Post subject: Re: C++ to C |
|
|
In <m1oew163mq.gnus (AT) usa (DOT) net> those who know me have no need of my name <not-a-real-address (AT) usa (DOT) net> writes:
| Quote: | in comp.lang.c i read:
"Bootstrap Bill" <wrcousert (AT) yahoo (DOT) com> writes:
Are there any open source C++ compilers that will produce C code? I
understand the first C++ compilers operated this way.
You might want to have a look at Comeau - it's not open source, but
it's cheap, and AFAIK does exactly what you want
but note that the code produced isn't intended for human consumption or
later use, so it's not necessarily maintainable (at least not directly).
|
And it's not portable C code, either. It's code fit for the target C
implementation(s) only.
Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: [email]Dan.Pop (AT) ifh (DOT) de[/email]
|
|
| Back to top |
|
 |
Greg Comeau Guest
|
Posted: Tue Oct 28, 2003 2:59 pm Post subject: Re: C++ to C |
|
|
In article <4cptghlmuo.fsf (AT) scxw21 (DOT) 4sc>,
Frank Schmitt <invalid (AT) seesignature (DOT) info> wrote:
| Quote: | "Bootstrap Bill" <wrcousert (AT) yahoo (DOT) com> writes:
Are there any open source C++ compilers that will produce C code? I
understand the first C++ compilers operated this way.
You might want to have a look at Comeau - it's not open source, but
it's cheap, and AFAIK does exactly what you want
(www.comeaucomputing.com)
|
Well, Comeau C++ does produce C as an implementation detail.
But that's not supposed to be a user concerns per se,
so Bootstrap should probably elaborate upon his needs,
and we can re-advise him from there. In other words,
what it the underlying need for the request in the first place?
--
Greg Comeau/4.3.3:Full C++03 core language + more Windows backends
Comeau C/C++ ONLINE ==> http://www.comeaucomputing.com/tryitout
World Class Compilers: Breathtaking C++, Amazing C99, Fabulous C90.
Comeau C/C++ with Dinkumware's Libraries... Have you tried it?
|
|
| Back to top |
|
 |
Sheldon Simms Guest
|
Posted: Tue Oct 28, 2003 4:26 pm Post subject: Re: C++ to C |
|
|
On Tue, 28 Oct 2003 09:59:29 -0500, Greg Comeau wrote:
| Quote: | In article <4cptghlmuo.fsf (AT) scxw21 (DOT) 4sc>,
Frank Schmitt <invalid (AT) seesignature (DOT) info> wrote:
"Bootstrap Bill" <wrcousert (AT) yahoo (DOT) com> writes:
Are there any open source C++ compilers that will produce C code? I
understand the first C++ compilers operated this way.
You might want to have a look at Comeau - it's not open source, but
it's cheap, and AFAIK does exactly what you want
(www.comeaucomputing.com)
Well, Comeau C++ does produce C as an implementation detail.
But that's not supposed to be a user concerns per se,
so Bootstrap should probably elaborate upon his needs,
and we can re-advise him from there. In other words,
what it the underlying need for the request in the first place?
|
The OP was also asking for C compiliers for the 6809,
so I suspect he is looking for a why to compile C++
code for one or more platforms for which no C++ compiler
exists.
-Sheldon
|
|
| Back to top |
|
 |
Dan Pop Guest
|
Posted: Tue Oct 28, 2003 5:07 pm Post subject: Re: C++ to C |
|
|
In <pan.2003.10.28.16.26.31.16971 (AT) yahoo (DOT) com> Sheldon Simms <sheldonsimms (AT) yahoo (DOT) com> writes:
| Quote: | The OP was also asking for C compiliers for the 6809,
so I suspect he is looking for a why to compile C++
code for one or more platforms for which no C++ compiler
exists.
|
Then, he is wasting his time. Apart from the portability of the generated
C code issue, there is also the missing C++ library support issue.
Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: [email]Dan.Pop (AT) ifh (DOT) de[/email]
|
|
| Back to top |
|
 |
Tristan Miller Guest
|
Posted: Wed Oct 29, 2003 2:05 pm Post subject: Re: C++ to C |
|
|
Greetings.
In article <Hyhnb.53907$ZH4.38025 (AT) twister (DOT) socal.rr.com>, Bootstrap Bill
wrote:
| Quote: | Are there any open source C++ compilers that will produce C code? I
understand the first C++ compilers operated this way.
|
This is mostly answered in the FAQ, wherein one should generally look before
posting:
http://www.eskimo.com/~scs/C-faq/q20.27.html
--
_
_V.-o Tristan Miller [en,(fr,de,ia)] >< Space is limited
/ |`-' -=-=-=-=-=-=-=-=-=-=-=-=-=-=-= <> In a haiku, so it's hard
(7_\ http://www.nothingisreal.com/ >< To finish what you
|
|
| Back to top |
|
 |
Bootstrap Bill Guest
|
Posted: Wed Oct 29, 2003 7:53 pm Post subject: Re: C++ to C |
|
|
"Jack Klein" <jackklein (AT) spamcop (DOT) net> wrote
| Quote: | On Mon, 27 Oct 2003 23:07:19 GMT, "Bootstrap Bill"
[email]wrcousert (AT) yahoo (DOT) com[/email]> wrote in comp.lang.c:
Are there any open source C++ compilers that will produce C code? I
understand the first C++ compilers operated this way.
C++ compilers are off-topic in comp.lang.c.
|
I asked about converting to C, so this is on topic.
|
|
| Back to top |
|
 |
Bootstrap Bill Guest
|
Posted: Wed Oct 29, 2003 7:55 pm Post subject: Re: C++ to C |
|
|
"Sheldon Simms" <sheldonsimms (AT) yahoo (DOT) com> wrote
| Quote: | The OP was also asking for C compiliers for the 6809,
so I suspect he is looking for a why to compile C++
code for one or more platforms for which no C++ compiler
exists.
Yes, that is exactly what I want to do.. |
|
|
| Back to top |
|
 |
Bootstrap Bill Guest
|
Posted: Wed Oct 29, 2003 7:57 pm Post subject: Re: C++ to C |
|
|
"Tristan Miller" <psychonaut (AT) nothingisreal (DOT) com> wrote
| Quote: | Greetings.
In article <Hyhnb.53907$ZH4.38025 (AT) twister (DOT) socal.rr.com>, Bootstrap Bill
wrote:
Are there any open source C++ compilers that will produce C code? I
understand the first C++ compilers operated this way.
This is mostly answered in the FAQ, wherein one should generally look
before
posting:
http://www.eskimo.com/~scs/C-faq/q20.27.html
That faq entry didn't even come close to answering my question. I want to |
convert C++ to C, not compile C with a C++ compiler.
|
|
| Back to top |
|
 |
E. Robert Tisdale Guest
|
Posted: Wed Oct 29, 2003 8:12 pm Post subject: Re: C++ to C |
|
|
Bootstrap Bill wrote:
| Quote: | Jack Klein wrote:
Bootstrap Bill wrote:
Are there any open source C++ compilers that will produce C code?
I understand the first C++ compilers operated this way.
C++ compilers are off-topic in comp.lang.c.
I asked about converting to C, so this is on topic.
|
Please ignore Jack Klein. He gets cranky sometimes.
And is often short tempered with new subscribers.
But, when he feels like it, he can be one of the best contributors
to the comp.lang.c newsgroup. Just be patient.
|
|
| Back to top |
|
 |
E. Robert Tisdale Guest
|
Posted: Wed Oct 29, 2003 8:20 pm Post subject: Re: C++ to C |
|
|
Bootstrap Bill wrote:
| Quote: | Are there any open source C++ compilers that will produce C code?
|
No.
| Quote: | I understand the first C++ compilers operated this way.
|
You probably mean AT+T's cfront.
I used Google
http://www.google.com/
to search for
+"C++" +"cfront" +"back end"
and I found lots of stuff including
The C++ Front End
http://www.edg.com/cpp.html
I don't know whether any of these are "open source"
or whether any of them *emit* portable C code.
|
|
| Back to top |
|
 |
Default User Guest
|
Posted: Wed Oct 29, 2003 9:40 pm Post subject: Re: C++ to C |
|
|
"E. Robert Tisdale" wrote:
| Quote: | Please ignore Jack Klein.
|
Listen to Jack Klein. Ignore Trollsdale.
Brian Rodenborn
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|