site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:subject :mime-version:date:references:x-mailer; bh=AWaRLqGJWf7kW2C/5UF9nhw56pYFAzyDNu6ENRHAdXg=; b=gPPekiUquSG1FJ+jx0lI1APCojAxvg2KS0tDdtzVq52TynN1gxN3o5y/5BqT6BUehk vJxk/lMCuE5BYfDpVWNS86SP7EGGF+pjupOMsQp4TtjxPb2jKzw3LJwwCYwh2cugfzxQ mZbOinXLUscXTV6xRlJ574TayN3campLqt/zE= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:subject:mime-version:date:references :x-mailer; b=YzVcn8nynDOuUyCzL9HR78FswuotqBaYFjjrSZ4gVoK8B2mkOzu64NN3L8Eh1nTUUZ G34CilMP7PlssHO7rVSCIu+IgGlu3PQx+6RbzFaD8gTLh+05tOql/nEYZomjO/TdcJEH mG9CBgmEcWgdAZ6NRmCnEbgpq42g6X1KdovLA= 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, 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(); } } Eli _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... -- 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. 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. This email sent to site_archiver@lists.apple.com
participants (1)
-
Eli Bach