Mail Archives: djgpp/2000/06/01/18:30:34
Hello.
Eli Zaretskii wrote:
>
> On Wed, 31 May 2000, Richard Dawe wrote:
>
> > BTW the __dpmi_paddr structure isn't padded. None of the structures in
> > dpmi.h seem to be. I wonder if they should be, perhaps for DJGPP 2.04?
>
> What for? What are the problems with them being unpadded?
>
> (Btw, nothing prevents the compiler from padding them at will, and I
> think it actually will do that. Did you look at sizeof(__dpmi_paddr)?)
No, I haven't looked at sizeof(__dpmi_paddr). My concern is that gcc could
pad between offset32 and selector, to align the data and increase access
speed. Clearly this will call the lcall to behave badly. I'm not bothered
about padding at the end - clearly this will have no effect.
[ My copy of K&R is at work, so maybe I misremember how padding works. If
it pads only at the end, then we have no problem, but ISTR that padding
can be added in the middle to improve alignment. ]
Bye,
--
Richard Dawe
richdawe AT bigfoot DOT com ICQ 47595498 http://www.bigfoot.com/~richdawe/
- Raw text -