From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa751,2b7125d906267e85 X-Google-Attributes: gidfa751,public X-Google-Thread: 1164f8,2b7125d906267e85 X-Google-Attributes: gid1164f8,public X-Google-Thread: 1051a8,609b85f3297346be X-Google-Attributes: gid1051a8,public X-Google-ArrivalTime: 1993-07-20 07:41:30 PST Xref: gmd.de comp.sys.mips:1186 comp.sys.dec:8883 comp.sys.sgi.hardware:1871 Newsgroups: comp.sys.mips,comp.sys.dec,comp.sys.sgi.hardware Path: gmd.de!newsserver.jvnc.net!darwin.sura.net!howland.reston.ans.net!ux1.cso.uiuc.edu!newsrelay.iastate.edu!news.iastate.edu!john From: john@iastate.edu (John Hascall) Subject: Re: A few questions about `as' Message-ID: Keywords: MIPS assembly Sender: news@news.iastate.edu (USENET News System) Organization: Iowa State University, Ames, IA References: <1993Jul20.085332.3130@maths.tcd.ie> <22gm6r$9em@taloa.unice.fr> Date: Tue, 20 Jul 1993 14:31:43 GMT In article <22gm6r$9em@taloa.unice.fr> desnogue@mimosa.unice.fr writes: }I am using `as' version 2.1 under Ultrix to assemble code }output by a code generator I'm writing. } - In Kane & Heinrich 's book pp D-19ff., the $fp register } is mentionned (under the name virtual frame pointer); } does this register really exist (for the compiler kit I } mean) or is it really `virtual' ? } Anyway which register should I use for $fp ? I'm currently } using $30 (s8). According to D-20 and D-21 the general use is: subu $sp,framesize .frame $sp,framesize,$31 That is to say, there is no real reason to save the previous version of $sp in some register as ``$fp'' -- you can get at whatever you want with offsets from $sp. So it really is virtual (I'm not sure why they even mentioned it, actually). John -- John Hascall ``An ill-chosen word is the fool's messenger.'' Systems Software Engineer Project Vincent Iowa State University Computation Center + Ames, IA 50011 + 515/294-9551