[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Memory alignment of pointers for sparc64



At 09:17 AM 09/05/02 -0400, Michael J. Saletnik wrote:
>On September 4, 2002 at 23:06, Bill Moseley wrote:
> > the allocated pointers based on the sizeof(void *).
>
>On September 5, 2002 at 08:13, Ben Collins wrote:
> > What was wrong with the original usage of sizeof(long)?
>
>Wouldn't it be most "correct" to use sizeof(caddr_t) ?

I'm not familiar with caddr_t.  (And I don't really have a grasp of what
the underlying issue is regarding memory alignment.)

Still, caddr_t == 4 on this machine (where I need 8), so it can't be used
in all cases.

Thanks,

-- 
Bill Moseley
mailto:moseley@hank.org



Reply to: