www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/11/20/17:42:55

Date: Sun, 20 Nov 94 15:04:36 -0500
From: dj AT stealth DOT ctron DOT com (DJ Delorie)
To: baca AT crl DOT ucsd DOT edu
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: stack segment

> 
> Does this mean I'm asking for trouble by messing with ss?

You can safely set SS := DS, but you lose the stack overflow
protection.  The two selectors map to the same linear starting
address.  In fact, this "enhancement" does break -fomit-frame-pointer
mode in gcc, which assumes that you can use SS to point to non-stack
things, so it may go away and then SS==DS always.


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019