From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1732 invoked by alias); 19 Jul 2008 13:12:29 -0000 Received: (qmail 1724 invoked by uid 22791); 19 Jul 2008 13:12:28 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 19 Jul 2008 13:12:04 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id m6JDC3II030694; Sat, 19 Jul 2008 09:12:03 -0400 Received: from zebedee.pink (vpn-12-138.rdu.redhat.com [10.11.12.138]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m6JDC1Ba002484; Sat, 19 Jul 2008 09:12:01 -0400 Message-ID: <4881E817.5050305@redhat.com> Date: Sat, 19 Jul 2008 15:24:00 -0000 From: Andrew Haley User-Agent: Thunderbird 2.0.0.14 (X11/20080421) MIME-Version: 1.0 To: Dario Saccavino CC: Optymizer Sez , gcc-help@gcc.gnu.org Subject: Re: C++ intermediate bytecode References: <759067.8352.qm@web53705.mail.re2.yahoo.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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: 2008-07/txt/msg00233.txt.bz2 Dario Saccavino wrote: > 2008/7/14 Optymizer Sez : >> Hi! >> >> I'd like to ask if there is a way to use GCC in order to compile a C++ source program into machine-independent code (bytecode, perhaps?) and then translate the bytecode into processor-dependent code on the target machine? >> Something like the Amsterdam Compiler Kit, but for C++ and x86_64 would be great! >> > > Hi, I'm not a GCC expert, but there is LLVM (http://llvm.org), that > provides an infrastructure to compile C and C++ programs into some > kind of bytecode. The compiler is "GCC-based" Not exactly. I think they use a gcc front-end, but that's all. Andrew.