Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!usc!apple!Greg@AppleLink.Apple.Com From: Greg@AppleLink.Apple.Com (Greg Marriott) Newsgroups: comp.sys.mac.programmer Subject: Re: Can I count on any alignment from NewHandle or NewPtr? Message-ID: <12563@goofy.Apple.COM> Date: 17 Mar 91 12:41:23 GMT References: <3588@ux.acs.umn.edu> <50238@apple.Apple.COM> <40191@cup.portal.com> Sender: usenet@Apple.COM Organization: Apple Computer, Inc. Lines: 24 In article <40191@cup.portal.com>, MacUserLabs@cup.portal.com (Stephan - Somogyi) writes: > > stevec@Apple.COM (Steve Christensen) writes: > > >As I recall, heap blocks are word aligned on 68000 Macs and are long > >word aligned on 68020 and 68030 Macs. > > If true, this is too cool for words. Is there any way of finding out > for sure? Well, hop into Macsbug and do a heap dump (hd). If every single block is long aligned, then I'd say the odds are really good that you've found out for sure. Either that, or you should call Ripley's because the odds against all allocations "accidentally" being long aligned are about a grillion to one. Greg Marriott Just Some Guy Apple Computer, Inc. adie ? Qui est le plus coherent des deux pour la societe ? -- serge@imag.fr