From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15674 invoked by alias); 7 May 2003 19:11:00 -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 15653 invoked from network); 7 May 2003 19:11:00 -0000 Received: from unknown (63.201.54.26) by sources.redhat.com with QMTP; 7 May 2003 19:11:00 -0000 Received: (qmail 26647 invoked by uid 10); 7 May 2003 19:10:59 -0000 Received: (qmail 26289 invoked by uid 500); 7 May 2003 19:10:51 -0000 Mail-Followup-To: binutils@sources.redhat.com, richdaddio@sandvideo.com To: "Rich DAddio" Cc: Subject: Re: GNU AS inline question References: From: Ian Lance Taylor Date: Wed, 07 May 2003 19:11:00 -0000 In-Reply-To: Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-05/txt/msg00228.txt.bz2 "Rich DAddio" writes: > I am doing an os port along with a migration to gcc on a basic RISC. And I > am not quite sure if this is the right list for this question so upfront > apologies it this is not appropriate. > > Inside one of the low-level init routines is a function and a piece of > inline assembly for a proprietary compiler assembler: > > int storeIt; > void theInitCFunction() > { > //inline assembly > _AS("st %mp, [storeIt]"); > } > > Which stashes the value of mp. > > Is there an easy way to do the same thing inline with gcc/as?? Do I have to > use extensions? http://gcc.gnu.org/onlinedocs/gcc-3.2.2/gcc/Extended-Asm.html#Extended%20Asm Ian