From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12368 invoked by alias); 27 Feb 2007 06:07:38 -0000 Received: (qmail 12325 invoked by uid 22791); 27 Feb 2007 06:07:37 -0000 X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.45.13) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 27 Feb 2007 06:07:31 +0000 Received: from zps38.corp.google.com (zps38.corp.google.com [172.25.146.38]) by smtp-out.google.com with ESMTP id l1R672rp008153; Mon, 26 Feb 2007 22:07:03 -0800 Received: from smtp.corp.google.com (spacemonkey3.corp.google.com [192.168.120.116]) by zps38.corp.google.com with ESMTP id l1R66uKg023125 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 26 Feb 2007 22:06:56 -0800 Received: from localhost.localdomain.google.com (adsl-71-133-8-30.dsl.pltn13.pacbell.net [71.133.8.30]) (authenticated bits=0) by smtp.corp.google.com (8.13.8/8.13.8) with ESMTP id l1R66tGP017578 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 26 Feb 2007 22:06:55 -0800 To: "Alexander Shabanov" Cc: gcc-help@gcc.gnu.org Subject: Re: GCC backend: can C++ code be converted to C equivalent? References: <43a7c3700702260150i795f87a3yc4b566aac9900bdc@mail.gmail.com> From: Ian Lance Taylor Date: Tue, 27 Feb 2007 06:09:00 -0000 In-Reply-To: <43a7c3700702260150i795f87a3yc4b566aac9900bdc@mail.gmail.com> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2007-02/txt/msg00350.txt.bz2 "Alexander Shabanov" 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