Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Feb 2012 00:42:46 +1000
From:      Da Rock <freebsd-questions@herveybayaustralia.com.au>
To:        freebsd-questions@freebsd.org
Subject:   Re: Converting C++ to C
Message-ID:  <4F47A1E6.8070705@herveybayaustralia.com.au>
In-Reply-To: <201202241207.q1OC75HG062038@fire.js.berklix.net>
References:  <201202241207.q1OC75HG062038@fire.js.berklix.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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... :)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F47A1E6.8070705>