From owner-freebsd-questions@FreeBSD.ORG Fri Feb 24 14:47:40 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 1C7AF106566C for ; Fri, 24 Feb 2012 14:47:40 +0000 (UTC) (envelope-from freebsd-questions@herveybayaustralia.com.au) Received: from mail.unitedinsong.com.au (mail.unitedinsong.com.au [150.101.178.33]) by mx1.freebsd.org (Postfix) with ESMTP id BFF038FC0A for ; Fri, 24 Feb 2012 14:47:39 +0000 (UTC) Received: from mail.unitedinsong.com.au (bell.herveybayaustralia.com.au [192.168.0.40]) by mail.unitedinsong.com.au (Postfix) with ESMTP id 033175C28 for ; Sat, 25 Feb 2012 01:01:06 +1000 (EST) Received: from laptop1.herveybayaustralia.com.au (laptop1.herveybayaustralia.com.au [192.168.0.177]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.unitedinsong.com.au (Postfix) with ESMTPSA id 98BC45C2D for ; Sat, 25 Feb 2012 01:01:06 +1000 (EST) Message-ID: <4F47A1E6.8070705@herveybayaustralia.com.au> Date: Sat, 25 Feb 2012 00:42:46 +1000 From: Da Rock User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:7.0.1) Gecko/20111109 Thunderbird/7.0.1 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <201202241207.q1OC75HG062038@fire.js.berklix.net> In-Reply-To: <201202241207.q1OC75HG062038@fire.js.berklix.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Converting C++ to C X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Feb 2012 14:47:40 -0000 On 02/24/12 22:07, Julian H. Stacey wrote: > 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@. Questions. I started it... :)