tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] Set the stack size of an executable


From: grischka
Subject: Re: [Tinycc-devel] Set the stack size of an executable
Date: Mon, 11 Jul 2011 18:54:49 +0200
User-agent: Thunderbird 2.0.0.24 (Windows/20100228)

Thomas Mertes wrote:
Hello.

Is there a tcc option to set the stack size of an executable?

Now yes: http://repo.or.cz/w/tinycc.git/commitdiff/45184e01

Under linux I think you'd need to use setrlimit().

Btw, your Seed7 compiler, does it work with tcc as backend?
(Just curious)

--- grischka


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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]