From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6083 invoked by alias); 15 Jan 2002 14:21:42 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 6044 invoked from network); 15 Jan 2002 14:21:41 -0000 Received: from unknown (HELO dell-paw-2.cambridge.redhat.com) (195.224.55.226) by sources.redhat.com with SMTP; 15 Jan 2002 14:21:41 -0000 Received: from north-pole.nickc.cambridge.redhat.com (host217-35-40-66.in-addr.btopenworld.com [217.35.40.66]) by dell-paw-2.cambridge.redhat.com (Postfix) with ESMTP id C49C92B4E9 for ; Tue, 15 Jan 2002 14:21:40 +0000 (GMT) Received: from north-pole.nickc.cambridge.redhat.com.nickc.cambridge.redhat.com (localhost [127.0.0.1]) by north-pole.nickc.cambridge.redhat.com (Postfix) with ESMTP id 3CBEE112131; Tue, 15 Jan 2002 14:20:21 +0000 (GMT) To: Crni Gorac Cc: binutils@sources.redhat.com Subject: Re: gas preprocessor References: <20020113121138.85415.qmail@web14808.mail.yahoo.com> From: Nick Clifton Date: Tue, 15 Jan 2002 07:06:00 -0000 In-Reply-To: <20020113121138.85415.qmail@web14808.mail.yahoo.com> Message-ID: User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-01/txt/msg00267.txt.bz2 Hi Crni, > Is preprocessing support in gas working? Am trying to utilize it > with gas 2.11.90.0.8 in order to create alias names for functions > arguments instead of use [ebp+8] etc. (am using Intel syntax). What > I'm actually looking for is gas equivalent of EQU directive commonly > found in other (well, at least IA-32) assemblers. I know that I > could accomplish same using gcc preprocessor but I don't like this > solution (when debugging code using gdb I have to struggle again > with [ebp+8] and alike). I believe that the short answer to your question is "no". You can use the .set directive to set up assemble time aliases for expressions, so you could do: .set foo, [ebp+8] This will not generate a debugging entry however, so you will not be able to see 'foo' in your GDB sessions. You might be able to use the register aliasing ability of gcc to solve your problem however. For example a declaration like this: register int ebp_reg asm ("ebp"); would create a variable called 'ebp_reg' which was mapped onto the ebp register and which could be viewed inside gdb. Cheers Nick