Connecting Tech Pros Worldwide Forums | Help | Site Map

C++ to C

Bootstrap Bill
Guest
 
Posts: n/a
#1: Jul 19 '05
Are there any open source C++ compilers that will produce C code? I
understand the first C++ compilers operated this way.




Jack Klein
Guest
 
Posts: n/a
#2: Jul 19 '05

re: C++ to C


On Mon, 27 Oct 2003 23:07:19 GMT, "Bootstrap Bill"
<wrcousert@yahoo.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]

C++ compilers are off-topic in comp.lang.c.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++ ftp://snurse-l.org/pub/acllc-c++/faq
Frank Schmitt
Guest
 
Posts: n/a
#3: Jul 19 '05

re: C++ to C


"Bootstrap Bill" <wrcousert@yahoo.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
those who know me have no need of my name
Guest
 
Posts: n/a
#4: Jul 19 '05

re: C++ to C


in comp.lang.c i read:[color=blue]
>"Bootstrap Bill" <wrcousert@yahoo.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).

--
a signature
Dan Pop
Guest
 
Posts: n/a
#5: Jul 19 '05

re: C++ to C


In <m1oew163mq.gnus@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@yahoo.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
Greg Comeau
Guest
 
Posts: n/a
#6: Jul 19 '05

re: C++ to C


In article <4cptghlmuo.fsf@scxw21.4sc>,
Frank Schmitt <invalid@seesignature.info> wrote:[color=blue]
>"Bootstrap Bill" <wrcousert@yahoo.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?
Sheldon Simms
Guest
 
Posts: n/a
#7: Jul 19 '05

re: C++ to C


On Tue, 28 Oct 2003 09:59:29 -0500, Greg Comeau wrote:
[color=blue]
> In article <4cptghlmuo.fsf@scxw21.4sc>,
> Frank Schmitt <invalid@seesignature.info> wrote:[color=green]
>>"Bootstrap Bill" <wrcousert@yahoo.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.

-Sheldon

Dan Pop
Guest
 
Posts: n/a
#8: Jul 19 '05

re: C++ to C


In <pan.2003.10.28.16.26.31.16971@yahoo.com> Sheldon Simms <sheldonsimms@yahoo.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
Tristan Miller
Guest
 
Posts: n/a
#9: Jul 19 '05

re: C++ to C


Greetings.

In article <Hyhnb.53907$ZH4.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:

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
Bootstrap Bill
Guest
 
Posts: n/a
#10: Jul 19 '05

re: C++ to C



"Jack Klein" <jackklein@spamcop.net> wrote in message
news:17lrpvo5if9qplap27mdcjprjjnb7qfsiv@4ax.com...[color=blue]
> On Mon, 27 Oct 2003 23:07:19 GMT, "Bootstrap Bill"
> <wrcousert@yahoo.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.



Bootstrap Bill
Guest
 
Posts: n/a
#11: Jul 19 '05

re: C++ to C



"Sheldon Simms" <sheldonsimms@yahoo.com> wrote in message
news:pan.2003.10.28.16.26.31.16971@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..



Bootstrap Bill
Guest
 
Posts: n/a
#12: Jul 19 '05

re: C++ to C



"Tristan Miller" <psychonaut@nothingisreal.com> wrote in message
news:2238734.fHekL7YmAO@ID-187157.news.dfncis.de...[color=blue]
> Greetings.
>
> In article <Hyhnb.53907$ZH4.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.



E. Robert Tisdale
Guest
 
Posts: n/a
#13: Jul 19 '05

re: C++ to C


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.

E. Robert Tisdale
Guest
 
Posts: n/a
#14: Jul 19 '05

re: C++ to C


Bootstrap Bill wrote:
[color=blue]
> Are there any open source C++ compilers that will produce C code?[/color]

No.
[color=blue]
> I understand the first C++ compilers operated this way.[/color]

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.

Default User
Guest
 
Posts: n/a
#15: Jul 19 '05

re: C++ to C


"E. Robert Tisdale" wrote:
[color=blue]
> Please ignore Jack Klein.[/color]


Listen to Jack Klein. Ignore Trollsdale.



Brian Rodenborn
Mark McIntyre
Guest
 
Posts: n/a
#16: Jul 19 '05

re: C++ to C


On Wed, 29 Oct 2003 19:53:34 GMT, in comp.lang.c , "Bootstrap Bill"
<wrcousert@yahoo.com> wrote:
[color=blue]
>
>"Jack Klein" <jackklein@spamcop.net> wrote in message
>news:17lrpvo5if9qplap27mdcjprjjnb7qfsiv@4ax.com.. .[color=green]
>> On Mon, 27 Oct 2003 23:07:19 GMT, "Bootstrap Bill"
>> <wrcousert@yahoo.com> wrote in comp.lang.c:
>>[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]

Not really. In CLC. the topic here is the C /language/ rather than
specific implementations of it. And converting one language to another
is certainly nontopical.

ISTR that you wanted an implementation for a PIC of some sort -
comp.arch.embedded might be a better place to ask.

--
Mark McIntyre
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.angelfire.com/ms3/bchambless0/welcome_to_clc.html>


----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Micah Cowan
Guest
 
Posts: n/a
#17: Jul 19 '05

re: C++ to C


"E. Robert Tisdale" <E.Robert.Tisdale@jpl.nasa.gov> writes:
[color=blue]
> Bootstrap Bill wrote:
>[color=green]
> > Jack Klein wrote:
> >[color=darkred]
> >> 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.[/color]
> > I asked about converting to C, so this is on topic.[/color]
>
> Please ignore Jack Klein.[/color]

That would be unwise.
[color=blue]
> He gets cranky sometimes.[/color]

Whether he was cranky or not I cannot determine, but he was
completely correct in pointing out that the question is
off-topic. We discuss *only* the C programming language here, not
tools to convert C++ to C code, not tools to edit C code; not
even tools to compile C code. Only the language itself is topical
here (besides the universally topical topic of topicality... such
as this message ;-) ) It is similarly off-topic in comp.lang.c++
as well.
[color=blue]
> 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.[/color]

You speak as one who has the authority to determine who is a good
contributor to these newsgroups, whereas so far you do not.

--
Micah J. Cowan
micah@cowan.name
Richard Heathfield
Guest
 
Posts: n/a
#18: Jul 19 '05

re: C++ to C


Default User wrote:
[color=blue]
> Listen to Jack Klein.[/color]

Indeed. In case anyone's been spending the last few years under a stone on
Mars, Jack Klein is one of the most clueful respondents on clc (can't speak
for clc++, but it wouldn't surprise me at all if he were highly respected
there, too).

--
Richard Heathfield : binary@eton.powernet.co.uk
"Usenet is a strange place." - Dennis M Ritchie, 29 July 1999.
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
K&R answers, C books, etc: http://users.powernet.co.uk/eton
John Smith
Guest
 
Posts: n/a
#19: Jul 19 '05

re: C++ to C


E. Robert Tisdale wrote:
[color=blue]
> 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.
>[/color]

ROTFL :-)! Sometimes this NG is better than "Seinfeld."


Closed Thread