[racket] Embedded Racket 5.1.3 on Windows

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Wed Oct 5 07:49:53 EDT 2011

At Wed, 5 Oct 2011 07:35:47 +0400, Sergey Khorev wrote:
> > Add "/F 8388608" to your compile line.
> >
> > Racket recently changed to assume an 8 MB stack under Windows, instead
> > of the default 1 MB stack, and I did not properly update the
> > documentation.
> 
> Ah, thank you. I suppose there is no harm if I do this for older
> versions too, besides bloated stack size.

Right.

After further thought, though, I'm changing the Racket DLL to assume a
1MB stack, and to try to read the current executable's PE32 header to
extract the actual stack reservation. That strategy can still go wrong
(if the thread used for Racket is a non-main thread with a smaller
stack, for example), but it's more likely to work for embedding
applications.



Posted on the users mailing list.