lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Mon, Jun 3, 2019 at 3:44 PM Roberto Ierusalimschy <roberto@inf.puc-rio.br> wrote:

>  E:\> link /DLL /out:lua54.dll l*.obj

On Windows, the stack size is per-thread. The default stack size, which is always the main thread's stack size, is set when linking the main application's executable (say lua.exe, not the lua54.dll as above). Unless an application has the defaults changed, the stack size is 1 megabyte regardless of the platform [1]. This is several times smaller than a typical Linux stack.

Cheers,
V.

[1] https://docs.microsoft.com/en-us/windows/desktop/procthread/thread-stack-size