Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: john@iastate.edu (John Hascall)
Subject: Re: A few questions about `as'
Date: Tue, 20 Jul 1993 14:31:43 GMT	[thread overview]
Message-ID: <CAGwCw.KwC@news.iastate.edu> (raw)
In-Reply-To: 22gm6r$9em@taloa.unice.fr

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


  reply	other threads:[~1993-07-20 14:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1993Jul20.085332.3130@maths.tcd.ie>
1993-07-20 11:50 ` A few questions about `as' Desnogues
1993-07-20 14:31   ` John Hascall [this message]
1993-07-20 17:32     ` Michael Meissner
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox