Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | Dirk Zabel <zabel@riccius-sohn.eu> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: Tiny C compiler option to set the stack size of an executable |
| Date | 2011-07-07 18:51 +0200 |
| Message-ID | <97m6h3Fej1U1@mid.uni-berlin.de> (permalink) |
| References | <042aa166-b727-4f54-8772-943f964b6f1b@y30g2000yqb.googlegroups.com> |
Am 07.07.2011 14:53, schrieb tm: > 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. I think this is a tcc-specific question, so it's OT in this group. The tcc documentation should cover that question. In general, the stack size an executable may use depends on target architecture and linker options, not on the compiler (as long as the compiler does not generate absolute machine code for exotic tiny platforms). Regards Dirk
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Tiny C compiler option to set the stack size of an executable tm <thomas.mertes@gmx.at> - 2011-07-07 05:53 -0700
Re: Tiny C compiler option to set the stack size of an executable Dirk Zabel <zabel@riccius-sohn.eu> - 2011-07-07 18:51 +0200
Re: Tiny C compiler option to set the stack size of an executable Malcolm McLean <malcolm.mclean5@btinternet.com> - 2011-07-09 06:29 -0700
Re: Tiny C compiler option to set the stack size of an executable gazelle@shell.xmission.com (Kenny McCormack) - 2011-07-09 13:40 +0000
Re: Tiny C compiler option to set the stack size of an executable Dirk Zabel <zabel@riccius-sohn.eu> - 2011-07-13 13:32 +0200
Re: Tiny C compiler option to set the stack size of an executable gazelle@shell.xmission.com (Kenny McCormack) - 2011-07-13 15:22 +0000
Re: Tiny C compiler option to set the stack size of an executable Roberto Waltman <usenet@rwaltman.com> - 2011-07-07 16:51 -0400
Re: Tiny C compiler option to set the stack size of an executable tm <thomas.mertes@gmx.at> - 2011-07-07 14:45 -0700
[OT] Re: Tiny C compiler option to set the stack size of an executable Roberto Waltman <usenet@rwaltman.com> - 2011-07-09 19:18 -0400
Re: Tiny C compiler option to set the stack size of an executable Geoff <geoff@invalid.invalid> - 2011-07-09 13:45 -0700
Re: Tiny C compiler option to set the stack size of an executable tm <thomas.mertes@gmx.at> - 2011-07-10 00:22 -0700
csiph-web