From: Tom Michiels <tomm@godard.cs.kuleuven.ac.be>
Subject: Re: unaligned trap help
Date: 1998/12/22 [thread overview]
Message-ID: <914362481.862804@marvin> (raw)
In-Reply-To: 75dc6k$a2p$1@news2.xs4all.nl
Paul Vlaar <paulwv@support.euronet.nl> wrote:
> > I looked at the code of dhcpcd 0.70 again, and: one should in fact
> > replace all u_long by u_int. But then again: the pointers casted to
> > u_int are not even 32bit-aligned!
> Shouldn't your compiler do this for you ?
I think you compiler can't know which asignments are going to be
unaligned at runtime. Best he can do is being extremely carefull
and considering all asignments after such casts to be unaligned.
I don't think that is a good idea. But I am not an expert.
Tom
--
Lottery: a tax on people who are bad at math.
prev parent reply other threads:[~1998-12-22 5:00 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-12-08 5:00 unaligned trap help Timothy K Canfield
1998-12-08 5:00 ` 97117071
1998-12-08 5:00 ` Charles E Taylor IV
1998-12-17 5:00 ` Mike Powers
1998-12-14 5:00 ` unaligned trap help - same pb Claude R. CIRBA
1998-12-22 5:00 ` remove_me
1998-12-17 5:00 ` unaligned trap help Tom Michiels
1998-12-17 5:00 ` Tom Michiels
1998-12-18 5:00 ` Paul Vlaar
1998-12-22 5:00 ` Tom Michiels [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox