Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #8378

Re: Is there any software porting C++ to C?

From "Bo Persson" <bop@gmb.dk>
Newsgroups comp.lang.c++
Subject Re: Is there any software porting C++ to C?
Date 2011-08-01 11:21 +0200
Message-ID <99n9gmFfr3U1@mid.individual.net> (permalink)
References <xxsZp.48094$T85.36355@newsfe19.ams2> <99n3n3Faa6U3@mid.individual.net> <gSsZp.127986$fQ4.108328@newsfe16.ams2>

Show all headers | View raw


crea wrote:
> "Ian Collins" <ian-news@hotmail.com> wrote in message
> news:99n3n3Faa6U3@mid.individual.net...
>> On 08/ 1/11 07:25 PM, crea wrote:
>>> I need to port C++ code to C code. It includes templates and
>>> classes. Is this possible and is there any programs which would
>>> do this automatically?
>>> Or any other help regarding this. Thank you
>>
>>  Comeau C++ or a lot of pain.
>
> I checked that, but in my understanding it does not produce
> (necessary) c-code:
>
> http://www.comeaucomputing.com/faqs/genfaq.html#ccompiler
> "the generated C code is not standalone. Therefore, it cannot be
> used by itself (note that this is both a technical and legal
> requirement when using Comeau C++), and this is why **there is not
> normally an option to see the generated C code**:"
>
> So it only gives executable program?

Yes.

The legal issues apart, I believe it generates badass ugly C code that 
would risk making you go blind if you try to read it. It would be 
totally unmaintanable anyway.


Bo Persson

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Is there any software porting C++ to C? "crea" <no@invalid.com> - 2011-08-01 08:25 +0100
  Re: Is there any software porting C++ to C? Ian Collins <ian-news@hotmail.com> - 2011-08-01 19:42 +1200
    Re: Is there any software porting C++ to C? "crea" <no@invalid.com> - 2011-08-01 08:47 +0100
      Re: Is there any software porting C++ to C? "Bo Persson" <bop@gmb.dk> - 2011-08-01 11:21 +0200
        Re: Is there any software porting C++ to C? "crea" <no@invalid.com> - 2011-08-01 10:26 +0100
      Re: Is there any software porting C++ to C? Ian Collins <ian-news@hotmail.com> - 2011-08-01 21:26 +1200
        Re: Is there any software porting C++ to C? "crea" <no@invalid.com> - 2011-08-01 11:16 +0100
          Re: Is there any software porting C++ to C? Robert Wessel <robertwessel2@yahoo.com> - 2011-08-01 11:59 -0500
            Re: Is there any software porting C++ to C? BGB <cr88192@hotmail.com> - 2011-08-01 14:18 -0700
            Re: Is there any software porting C++ to C? James Kanze <james.kanze@gmail.com> - 2011-08-07 11:39 -0700
  Re: Is there any software porting C++ to C? Juha Nieminen <nospam@thanks.invalid> - 2011-08-01 08:48 +0000
    Re: Is there any software porting C++ to C? "crea" <no@invalid.com> - 2011-08-01 10:29 +0100
    Re: Is there any software porting C++ to C? "Waldek M." <wm@localhost.localdomain> - 2011-08-04 21:54 +0200
  Re: Is there any software porting C++ to C? Marcel Müller <news.5.maazl@spamgourmet.com> - 2011-08-01 11:29 +0200
  Re: Is there any software porting C++ to C? Joshua Maurice <joshuamaurice@gmail.com> - 2011-08-02 14:45 -0700
    Re: Is there any software porting C++ to C? Philipp Klaus Krause <pkk@spth.de> - 2011-08-04 19:30 +0200
      Re: Is there any software porting C++ to C? Victor Bazarov <v.bazarov@comcast.invalid> - 2011-08-04 13:53 -0400
        Re: Is there any software porting C++ to C? jt@toerring.de (Jens Thoms Toerring) - 2011-08-04 20:38 +0000
        Re: Is there any software porting C++ to C? Nobody <nobody@nowhere.com> - 2011-08-04 21:54 +0100
      Re: Is there any software porting C++ to C? BGB <cr88192@hotmail.com> - 2011-08-04 15:40 -0700
  Re: Is there any software porting C++ to C? Uwe Dolinsky <uwe@codeplay.com> - 2011-08-03 07:34 -0700

csiph-web