Changes between Version 1 and Version 2 of Ticket #8870, comment 14


Ignore:
Timestamp:
Mar 31, 2014 2:57:58 PM (14 months ago)
Author:
awson
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #8870, comment 14

    v1 v2  
    33Also [https://ghc.haskell.org/trac/ghc/ticket/8834#comment:82 growing stack by more than 1 page] is a *definite* bug in Windows. And there are many discussions on this here and there. 
    44 
    5 As a temporary workaround could we simply increase reserved *and* committed stack size in an executable's header making GHC invoke linker with right options when producing executables - something like `-optl-Xlinker -optl--stack=0x800000,0x800000`? This would make things more or less like they are under Linux/OSX. Or we need to access it anyway? If so, to speed things up we could use already existent `__chkstk` function. 
     5As a temporary workaround could we simply increase reserved *and* committed stack size in an executable's header making GHC invoke linker with right options when producing executables - something like `-optl-Xlinker -optl--stack=0x800000,0x800000`? This would make things more or less like they are under Linux/OSX. Or we need to access intermediate addresses anyway? If so, to speed things up we could use already existent `__chkstk` function.