From owner-freebsd-questions@FreeBSD.ORG Fri Feb 24 12:07:38 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 972F2106566B for ; Fri, 24 Feb 2012 12:07:38 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from tower.berklix.org (tower.berklix.org [83.236.223.114]) by mx1.freebsd.org (Postfix) with ESMTP id BEB6F8FC12 for ; Fri, 24 Feb 2012 12:07:37 +0000 (UTC) Received: from mart.js.berklix.net (pD9FBFFE4.dip.t-dialin.net [217.251.255.228]) (authenticated bits=0) by tower.berklix.org (8.14.2/8.14.2) with ESMTP id q1OC7YRV066997; Fri, 24 Feb 2012 12:07:35 GMT (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (fire.js.berklix.net [192.168.91.41]) by mart.js.berklix.net (8.14.3/8.14.3) with ESMTP id q1OC7Nv5069661; Fri, 24 Feb 2012 13:07:24 +0100 (CET) (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (localhost [127.0.0.1]) by fire.js.berklix.net (8.14.4/8.14.4) with ESMTP id q1OC75HG062038; Fri, 24 Feb 2012 13:07:17 +0100 (CET) (envelope-from jhs@fire.js.berklix.net) Message-Id: <201202241207.q1OC75HG062038@fire.js.berklix.net> To: perryh@pluto.rain.com From: "Julian H. Stacey" Organization: http://berklix.com BSD Unix Linux Consultancy, Munich Germany User-agent: EXMH on FreeBSD http://berklix.com/free/ X-URL: http://www.berklix.com In-reply-to: Your message "Fri, 24 Feb 2012 01:37:22 PST." <4f47bcc2.i0iNgy94hupdyGb5%perryh@pluto.rain.com> Date: Fri, 24 Feb 2012 13:07:05 +0100 Sender: jhs@berklix.com Cc: freebsd-questions@freebsd.org Subject: Re: Converting C++ to C X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Feb 2012 12:07:38 -0000 perryh@pluto.rain.com wrote: > Some early implementations of C++ operated as preprocessors > that emitted C code. Is there any current tool that will do > that? I didn't recognize any such option in the g++ manpage, > although I suppose it's possible that one of the -fdump-tree- > options would come close enough. > > Reason: I want to make what I think would be a fairly minor > change to a small (1100-line) C++ program, but I don't know C++ > -- only C -- and I don't understand the program well enough > to mess with it. I suspect I would be able to figure out an > equivalent C program. > > In case it matters, I'm using FreeBSD 8.1. One of the lists recently (maybe 2/3 weeks ago) carried a thread listing many C compilers past & present. It started by discussing Clang V. GCC I can't remember which list, I don't think it was questions@ maybe hackers@ or current@. Cheers, Julian -- Julian Stacey, BSD Unix Linux C Sys Eng Consultants Munich http://berklix.com Reply below not above, cumulative like a play script, & indent with "> ". Format: Plain text. Not HTML, multipart/alternative, base64, quoted-printable. Mail from @yahoo dumped @berklix. http://berklix.org/yahoo/