From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3608 invoked by alias); 29 Apr 2009 13:34:37 -0000 Received: (qmail 3599 invoked by uid 22791); 29 Apr 2009 13:34:36 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from cam-admin0.cambridge.arm.com (HELO cam-admin0.cambridge.arm.com) (193.131.176.58) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 29 Apr 2009 13:34:31 +0000 Received: from cam-owa2.Emea.Arm.com (cam-owa2.emea.arm.com [10.1.105.18]) by cam-admin0.cambridge.arm.com (8.12.6/8.12.6) with ESMTP id n3TDUWZm012712; Wed, 29 Apr 2009 14:30:32 +0100 (BST) Received: from [10.1.129.13] ([10.1.255.212]) by cam-owa2.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 29 Apr 2009 14:34:27 +0100 Subject: Re: Register Usage From: Richard Earnshaw To: John Farmer Cc: gcc-help@gcc.gnu.org In-Reply-To: <23295829.post@talk.nabble.com> References: <23279910.post@talk.nabble.com> <23287035.post@talk.nabble.com> <1240997259.21004.8.camel@pc960.cambridge.arm.com> <23294443.post@talk.nabble.com> <1241001483.21004.21.camel@pc960.cambridge.arm.com> <23295829.post@talk.nabble.com> Content-Type: text/plain Date: Wed, 29 Apr 2009 13:34:00 -0000 Message-Id: <1241012067.21004.46.camel@pc960.cambridge.arm.com> Mime-Version: 1.0 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: 2009-04/txt/msg00440.txt.bz2 On Wed, 2009-04-29 at 05:14 -0700, John Farmer wrote: > Hi Richard, > > Applogies if this sounds silly but I am new to the GCC toolchain. > > Are you saying that arm-none-eab is a type of compiler and not a command > line option? Yes, when you build GCC from the sources you get to determine both what machine you want to target (ARM, MIPS, Sparc, etc) and what sort of platform will be running on your machine (Linux, Solaris, bare-metal (ie no OS). You can find out what configuration was used for your particular compiler if you invoke GCC with just the -v option. For example, a compiler I have here says: [RWE]$ arm-eabi-gcc -v Target: arm-eabi Configured with: /home/rearnsha/gnusrc/gcc-cross/trunk/configure --prefix=/work/rearnsha/gnu/trunk/testinstall --enable-checking=release --disable-werror --enable-languages=c,c++ --target=arm-eabi --with-headers=/home/rearnsha/gnusrc/gcc-cross/trunk/newlib/libc/include --with-newlib --disable-libmudflap --with-gmp=/home/rearnsha/gnu/install/x86 Thread model: single gcc version 4.4.0 20081112 (experimental) (GCC) > > The GCC tools "as" and "cc1" that I have are part of the development IDE > (CrossWorks for ARM) that I am using and are based on GCC V4.1.1. > If your target isn't for the EABI (see above), then I think you'll need to talk to the CrossWorks people to find out how to get one. > Would I be correct in thinking that "as" and "cc1" would have been built > specifically for the ARM CPU? Looking at the --help for these the only CPU > options shown are for the ARM which presumably suggests that many (non-ARM) > options have been removed. Indeed (see above). R.