nightmares with biased stack pointers

David S. Miller davem@jenolan.rutgers.edu
Tue Sep 16 07:38:00 GMT 1997


   Date: Mon, 15 Sep 1997 14:51:57 -0400 (EDT)
   From: meissner@cygnus.com

   Another possibility is to use the elimination macros (ie, define a
   new register which is the stack pointer without the bias, and then
   eliminate to the real register via subtraction.

Interesting.

My one concern with this approach is that this modifies the range (via
immediate offsets) which can be reached relative to the real stack,
since it will be working with a virtual stack pointer.

Or do the elimination macros handle all of this transparently (or can
be made to do so)?

Later,
David "Sparc" Miller
davem@caip.rutgers.edu



More information about the Gcc mailing list