• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Dividing an array into subgroups?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dividing an array into subgroups?


  • Subject: Re: Dividing an array into subgroups?
  • From: Andrew Pinski <email@hidden>
  • Date: Tue, 17 Jun 2003 00:47:54 -0400

It almost always works but sometime when there is dead code after the call but
before the return it does not. It will always work with return function() or
return [self message]. The only other time it will not work (I know of) is if you use
altivec registers. Also in the Apple's version of gcc it will optimize indirect
sib calls but the FSF's gcc does not.

Thanks,
Andrew Pinski



On Tuesday, Jun 17, 2003, at 00:42 US/Eastern, Michael Tsai wrote:

On Monday, June 16, 2003, at 11:54 PM, Andrew Pinski wrote:

gcc does optimize sib calls so that tail calls will be optimize
like any other sib calls so the stacksize will not grow too big.

Cool, I just checked with -S and indeed it worked. Thanks. Do you know if it always works? I found some old mailing list posts saying that gcc could only apply -foptimize-sibling-calls some of the time.

--
Michael Tsai <http://www.c-command.com>
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Dividing an array into subgroups?
      • From: Michael Tsai <email@hidden>
References: 
 >Re: Dividing an array into subgroups? (From: Michael Tsai <email@hidden>)

  • Prev by Date: Re: Rendezvous & StartupItems
  • Next by Date: Re: Dividing an array into subgroups?
  • Previous by thread: Re: Dividing an array into subgroups?
  • Next by thread: Re: Dividing an array into subgroups?
  • Index(es):
    • Date
    • Thread