Re: GCC stack size
Re: GCC stack size
- Subject: Re: GCC stack size
- From: Eli Bach <email@hidden>
- Date: Tue, 3 Mar 2009 13:15:25 -0800
On Mar 3, 2009, at 11:59 AM, Ryan McGann wrote:
Sorry but LLVM is out of the question. We need 10.4 support and AFAIK
code compiled with LLVM won't run on 10.4. Thanks for trying though.
I'll look at IBM's PowerPC compiler but I won't hold my breath.
-- Ryan
Ryan,
Could you 'cheat', presuming you can work out scoping yourself to make
sure you don't reuse variables improperly, but you could maybe script
text replacement so that the original code still uses properly scoped
variables, but the batch changed code uses variables with function
scope, possibly with typecasts also inserted automatically.
Something if you start with something like this:
void TestFunc()
{
{
CClassA * a;
a = new CClassA;
a->FuncA();
...
}
{
CClassB * b;
b = new CClassB;
b->FuncB();
...
}
}
and you do a text replacement on it to change it to:
void TestFunc()
{
void * shared;
{
shared = (void *)new ClassA;
((ClassA *)shared)->FuncA();
}
{
shared = (void *)new ClassB;
((ClassB *)shared)->FuncB();
}
}
I would create a script to do this automatically, rather than manually
doing it (other than the first time), but this might help you get the
stack size down to a more reasonable level.
Eli
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden