From: | Gunther Nikl |
Date: | 13 Aug 2001 at 15:18:34 |
Subject: | [amiga-c] Re: How do I copy clone |
On Mon, Aug 13, 2001 at 09:35:54AM +0600, Jack York wrote:
> On 12-Aug-01, Sensei wrote:
> > You're correct. Memory allocated by AllocMem() is and will be long word
> > aligned because it's documented in exec.library autodoc.
>
> Yes, I saw that in the docs. But I haven't seen where it says AllocPooled
> calls AllocMem.
For a reason since it doesn't matter at all. AllocPooled() can do whatever
it wants to allocate the memory. *Currently* it might use AllocMem() to
allocate a pool (AllocPooled() probably manages the pools with Allocate()).
In either case long-word alignment is guaranteed (For AllocMem() the
alignment is MEM_BLOCKSIZE)
> I'm just going on what was said on the list. So in the case of allocating
> memory for a fib, is there any reason to use AllocDosObject instead of
> AllocPooled?
*Compatibility*
Use system functions to allocate system structure if there is a function
to do so.
Gunther
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/