From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14032 invoked by alias); 8 Sep 2004 20:23:14 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 14022 invoked from network); 8 Sep 2004 20:23:13 -0000 Received: from unknown (HELO yosemite.airs.com) (209.128.65.135) by sourceware.org with SMTP; 8 Sep 2004 20:23:13 -0000 Received: (qmail 23569 invoked by uid 10); 8 Sep 2004 20:23:13 -0000 Received: (qmail 20094 invoked by uid 500); 8 Sep 2004 20:23:04 -0000 From: Ian Lance Taylor To: Jason Spencer Cc: gcc-help@gcc.gnu.org Subject: Re: debugging gcc-generated assembly References: <20040908201413.19789.qmail@web81608.mail.yahoo.com> Date: Wed, 08 Sep 2004 20:23:00 -0000 In-Reply-To: <20040908201413.19789.qmail@web81608.mail.yahoo.com> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2004-09/txt/msg00064.txt.bz2 Jason Spencer writes: > I'm trying to chase a nasty bug in code generated by > GCC 2.7.2 on a Motorola PowerPC 603 core.=C2=A0 I have to > understand the register usage conventions the compiler > uses, but I can't find that in any of the docs.=C2=A0 > Specifically, I'm interested in things like which > register is the "this" pointer, which are used for > parameters, return values, etc.=C2=A0 Is there an easily > accessible doc that goes through those details for my > architecture? See the "Function Calling Sequence" chapter in http://www.linuxbase.org/spec/ELF/ppc64/PPC-elf64abi-1.7.html The "this" pointer is normally treated as an invisible first argument. Ian