On Mon, 27 Oct 2003 23:07:19 GMT, "Bootstrap Bill"
<wrcousert@yaho o.com> wrote in comp.lang.c:
[color=blue]
> Are there any open source C++ compilers that will produce C code? I
> understand the first C++ compilers operated this way.[/color]
"Bootstrap Bill" <wrcousert@yaho o.com> writes:
[color=blue]
> Are there any open source C++ compilers that will produce C code? I
> understand the first C++ compilers operated this way.[/color]
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
in comp.lang.c i read:[color=blue]
>"Bootstrap Bill" <wrcousert@yaho o.com> writes:[/color]
[color=blue][color=green]
>> Are there any open source C++ compilers that will produce C code? I
>> understand the first C++ compilers operated this way.[/color]
>
>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[/color]
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).
In <m1oew163mq.gnu s@usa.net> those who know me have no need of my name <not-a-real-address@usa.net > writes:
[color=blue]
>in comp.lang.c i read:[color=green]
>>"Bootstrap Bill" <wrcousert@yaho o.com> writes:[/color]
>[color=green][color=darkred]
>>> Are there any open source C++ compilers that will produce C code? I
>>> understand the first C++ compilers operated this way.[/color]
>>
>>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[/color]
>
>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).[/color]
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: Dan.Pop@ifh.de
In article <4cptghlmuo.fsf @scxw21.4sc>,
Frank Schmitt <invalid@seesig nature.info> wrote:[color=blue]
>"Bootstrap Bill" <wrcousert@yaho o.com> writes:
>[color=green]
>> Are there any open source C++ compilers that will produce C code? I
>> understand the first C++ compilers operated this way.[/color]
>
>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)[/color]
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?
On Tue, 28 Oct 2003 09:59:29 -0500, Greg Comeau wrote:
[color=blue]
> In article <4cptghlmuo.fsf @scxw21.4sc>,
> Frank Schmitt <invalid@seesig nature.info> wrote:[color=green]
>>"Bootstrap Bill" <wrcousert@yaho o.com> writes:
>>[color=darkred]
>>> Are there any open source C++ compilers that will produce C code? I
>>> understand the first C++ compilers operated this way.[/color]
>>
>>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)[/color]
>
> 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?[/color]
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.
In <pan.2003.10.28 .16.26.31.16971 @yahoo.com> Sheldon Simms <sheldonsimms@y ahoo.com> writes:
[color=blue]
>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.[/color]
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: Dan.Pop@ifh.de
In article <Hyhnb.53907$ZH 4.38025@twister .socal.rr.com>, Bootstrap Bill
wrote:[color=blue]
> Are there any open source C++ compilers that will produce C code? I
> understand the first C++ compilers operated this way.[/color]
This is mostly answered in the FAQ, wherein one should generally look before
posting:
--
_
_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
"Jack Klein" <jackklein@spam cop.net> wrote in message
news:17lrpvo5if 9qplap27mdcjprj jnb7qfsiv@4ax.c om...[color=blue]
> On Mon, 27 Oct 2003 23:07:19 GMT, "Bootstrap Bill"
> <wrcousert@yaho o.com> wrote in comp.lang.c:
>[color=green]
> > Are there any open source C++ compilers that will produce C code? I
> > understand the first C++ compilers operated this way.[/color]
>
> C++ compilers are off-topic in comp.lang.c.[/color]
I asked about converting to C, so this is on topic.
"Sheldon Simms" <sheldonsimms@y ahoo.com> wrote in message
news:pan.2003.1 0.28.16.26.31.1 6971@yahoo.com. ..[color=blue]
> 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.[/color]
Yes, that is exactly what I want to do..
"Tristan Miller" <psychonaut@not hingisreal.com> wrote in message
news:2238734.fH ekL7YmAO@ID-187157.news.dfn cis.de...[color=blue]
> Greetings.
>
> In article <Hyhnb.53907$ZH 4.38025@twister .socal.rr.com>, Bootstrap Bill
> wrote:[color=green]
> > Are there any open source C++ compilers that will produce C code? I
> > understand the first C++ compilers operated this way.[/color]
>
> This is mostly answered in the FAQ, wherein one should generally look[/color]
before[color=blue]
> posting:
>
> http://www.eskimo.com/~scs/C-faq/q20.27.html
>[/color]
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.
Bootstrap Bill wrote:
[color=blue]
> Jack Klein wrote:
>[color=green]
>> Bootstrap Bill wrote:
>>[color=darkred]
>>> Are there any open source C++ compilers that will produce C code?
>>> I understand the first C++ compilers operated this way.[/color]
>>
>> C++ compilers are off-topic in comp.lang.c.[/color]
>
> I asked about converting to C, so this is on topic.[/color]
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.
Comment