No subject

Henry Cejtin henry@sourcelight.com
Tue, 5 Mar 2002 20:16:05 -0600


(re-sent by HCC)

>From sweeks@localhost.localdomain  Tue Mar  5 13:57:03 2002
Date: Tue, 5 Mar 2002 11:57:00 -0800
From: Stephen Weeks <sweeks@acm.org>
To: MLton@sourcelight.com
Reply-to: MLton@sourcelight.com
Subject: Re: sigaltstack and cygwin

> > Cygwin has no sigaltstack.  So, it seems to me that I need to change
> > the x86-codegen so that %esp is reserved to hold the C stack pointer
> > when targeting cygwin.  Does that seem right?  Easy?
> 
> That shouldn't be too hard.  Essentially, you or I'll need to muck with
> x86-generate-tranfers.fun.  It should suffice to simply put an
> x86.Directive.Assume of esp in c_stackP with reserve = true at the top of
> every basic block when compiling with cygwin.  

I was thinking of doing it another way.  Since I want %esp reserved
for the C stack at every point, it seems like less work to hide the
existence of %esp from the x86-codegen altogether.  Is there an easy
way to do that?