Thomas Mertes
2011-07-11 07:06:36 UTC
Hello.
Is there a tcc option to set the stack size of an executable?
I compiled my project (http://seed7.sourceforge.net) with
tcc version 0.9.25 under Windows and Linux. Most things
work, but some programs crash, because the stack is too
small (I am quite sure it is a stack size problem. You can
save the time to tell me about endless recursions, etc. ).
Compilers/linkers usually have a possibility to set the stack
size. For Windows + MinGW gcc I use the option:
-Wl,--stack,4194304
Other compilers have similar options. A solution which
uses gcc as linker would not be helpful, since I want to
provide a makefile for people who just have tcc installed.
Greetings Thomas Mertes
--
Seed7 Homepage: http://seed7.sourceforge.net
Seed7 - The extensible programming language: User defined statements
and operators, abstract data types, templates without special
syntax, OO with interfaces and multiple dispatch, statically typed,
interpreted or compiled, portable, runs under linux/unix/windows.
Is there a tcc option to set the stack size of an executable?
I compiled my project (http://seed7.sourceforge.net) with
tcc version 0.9.25 under Windows and Linux. Most things
work, but some programs crash, because the stack is too
small (I am quite sure it is a stack size problem. You can
save the time to tell me about endless recursions, etc. ).
Compilers/linkers usually have a possibility to set the stack
size. For Windows + MinGW gcc I use the option:
-Wl,--stack,4194304
Other compilers have similar options. A solution which
uses gcc as linker would not be helpful, since I want to
provide a makefile for people who just have tcc installed.
Greetings Thomas Mertes
--
Seed7 Homepage: http://seed7.sourceforge.net
Seed7 - The extensible programming language: User defined statements
and operators, abstract data types, templates without special
syntax, OO with interfaces and multiple dispatch, statically typed,
interpreted or compiled, portable, runs under linux/unix/windows.
--
NEU: FreePhone - kostenlos mobil telefonieren!
Jetzt informieren: http://www.gmx.net/de/go/freephone
NEU: FreePhone - kostenlos mobil telefonieren!
Jetzt informieren: http://www.gmx.net/de/go/freephone