Xref: utzoo comp.lang.c++:8517 gnu.gcc:1774 Path: utzoo!utgpu!watserv1!watmath!uunet!mcsun!ukc!dcl-cs!aber-cs!odin!pcg From: pcg@cs.aber.ac.uk (Piercarlo Grandi) Newsgroups: comp.lang.c++,gnu.gcc Subject: Re: Is there a PD C++ that compiles to C Message-ID: Date: 18 Jul 90 20:49:49 GMT References: <281@unf7.UUCP> <2106@gould.doc.ic.ac.uk> Sender: pcg@aber-cs.UUCP Organization: Coleg Prifysgol Cymru Lines: 24 In-reply-to: umace03@doc.ic.ac.uk's message of 16 Jul 90 17:12:31 GMT In article <2106@gould.doc.ic.ac.uk> umace03@doc.ic.ac.uk (M Y Ben Gershon) writes: I am looking for a highly portable version of C++ that generates ANSI C as its 'object code', and is written itself in C, with sources included. Does such a product exist? GNU g++ is no good, as it is part of the GNU gcc, which of course generates machine code output. Ehm, reality far surpasses imagination. I remember having seen an article that described or hinted that somebody has already done a set of GNU C/C++ code generator template files that make it generate code for a "machine" whose assembler is C, i.e. a c.md file. I see nothing improbable with this, and I reckon it must be equally possible to have machine description files for machines whose assembler is Ada, Lisp, etc... If anybody knows of where to get the C code generation files for GNU C++: it would be nice if the details were posted... -- Piercarlo "Peter" Grandi | ARPA: pcg%cs.aber.ac.uk@nsfnet-relay.ac.uk Dept of CS, UCW Aberystwyth | UUCP: ...!mcsun!ukc!aber-cs!pcg Penglais, Aberystwyth SY23 3BZ, UK | INET: pcg@cs.aber.ac.uk