From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5269 invoked by alias); 21 Nov 2004 06:49:52 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 5248 invoked from network); 21 Nov 2004 06:49:48 -0000 Received: from unknown (HELO rproxy.gmail.com) (64.233.170.202) by sourceware.org with SMTP; 21 Nov 2004 06:49:48 -0000 Received: by rproxy.gmail.com with SMTP id r35so165091rna for ; Sat, 20 Nov 2004 22:49:48 -0800 (PST) Received: by 10.38.181.38 with SMTP id d38mr376678rnf; Sat, 20 Nov 2004 22:49:48 -0800 (PST) Received: by 10.38.81.60 with HTTP; Sat, 20 Nov 2004 22:49:48 -0800 (PST) Message-ID: <761cb958041120224926e8e3da@mail.gmail.com> Date: Sun, 21 Nov 2004 18:02:00 -0000 From: Santhu Reply-To: Santhu To: gcc@gcc.gnu.org Subject: reg. cross compiling Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SW-Source: 2004-11/txt/msg00723.txt.bz2 my task is to convert the C-code into VM-Code (VM is a kind of assembly lang developed by my collegues). for this, i'm taking the GNU assembly code generated by GCC by compiling with '-S' option. but the problem is that GCC is generating the GAS code based on the architecture of the machine it is running on. is there any way i can set the architecture info to make GCC to generate the assembly code for a target architecture? ( i.e, running on SPARC machine can i generate the assembly code for Intel x86 ) thank you in advance.