* GCC backend: can C++ code be converted to C equivalent?
@ 2007-02-26 13:42 Alexander Shabanov
2007-02-27 6:09 ` Ian Lance Taylor
[not found] ` <fa28b9250702261537j57f845e7o29b25219000167c9@mail.gmail.com>
0 siblings, 2 replies; 3+ messages in thread
From: Alexander Shabanov @ 2007-02-26 13:42 UTC (permalink / raw)
To: gcc-help
Does anybody know if it is possible to produce C code from C++ using gcc (g++)?
I know that gcc can produce an assembler output using the `S' option,
but can that code be translated to the certain "crossoplatform"
assembler - C code? May be there is some unofficial project which is
regard to this?
If yes, could you please refer me to the existing documentation?
PS: I searched this via google - he has no ideas :)
--
Best regards,
Alexander
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: GCC backend: can C++ code be converted to C equivalent?
2007-02-26 13:42 GCC backend: can C++ code be converted to C equivalent? Alexander Shabanov
@ 2007-02-27 6:09 ` Ian Lance Taylor
[not found] ` <fa28b9250702261537j57f845e7o29b25219000167c9@mail.gmail.com>
1 sibling, 0 replies; 3+ messages in thread
From: Ian Lance Taylor @ 2007-02-27 6:09 UTC (permalink / raw)
To: Alexander Shabanov; +Cc: gcc-help
"Alexander Shabanov" <avshabanov@gmail.com> writes:
> Does anybody know if it is possible to produce C code from C++ using gcc (g++)?
> I know that gcc can produce an assembler output using the `S' option,
> but can that code be translated to the certain "crossoplatform"
> assembler - C code? May be there is some unofficial project which is
> regard to this?
> If yes, could you please refer me to the existing documentation?
It is not possible. I do not know of any existing projects trying to
implement this.
Ian
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: GCC backend: can C++ code be converted to C equivalent?
[not found] ` <fa28b9250702261537j57f845e7o29b25219000167c9@mail.gmail.com>
@ 2007-02-27 9:50 ` Alexander Shabanov
0 siblings, 0 replies; 3+ messages in thread
From: Alexander Shabanov @ 2007-02-27 9:50 UTC (permalink / raw)
To: gcc-help
2007/2/27, me22 <me22.ca@gmail.com>:
> It's not with mainline g++, so I don't know if this is acceptable, but
> the LLVM project ( llvm.org ) has a port of g++ that emits LLVM
> bytecode and there's a compiler for llvm bytecode with a C backend.
Thanks, that's great information! I'm not dug in that yet, but hope it
will justify my expectations.
> On 2/26/07, Alexander Shabanov <avshabanov@gmail.com> wrote:
> > ...
--
Best regards,
Alexander Shabanov
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-02-27 7:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-26 13:42 GCC backend: can C++ code be converted to C equivalent? Alexander Shabanov
2007-02-27 6:09 ` Ian Lance Taylor
[not found] ` <fa28b9250702261537j57f845e7o29b25219000167c9@mail.gmail.com>
2007-02-27 9:50 ` Alexander Shabanov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).