Subject: Re: #pragma pack parameter ?
To: John F. Woods <jfw@jfwhome.funhouse.com>
From: Hellmuth Michaelis <hm@hcswork.hcs.de>
List: port-i386
Date: 04/12/1995 09:00:46
>From the keyboard of John F. Woods:

> > For a driver on NetBSD 1.0 i need an exact representation of structures in
> > memory and i just discovered the hard way gcc does some filling and adjust-
> > ments to structures.
> > And as i walked through the gcc manuals i noticed RMS does not like pragmas,
> > so is there a more recommended way instead of using #pragma pack ?
> 
> The absolutely guaranteed way to do this is to not use structures at all
> to represent hardware registers.

If it were only some registers ..., seriously it's a lot of structures
describing messages which then get transmitted to the hardware.

If i do not use structures in that code, i will not understand my own code
in half a year anymore ...

hellmuth
-- 
Hellmuth Michaelis        GFKT HCS Computertechnik GmbH        Hamburg, Europe
                     We all live in a yellow subroutine, yellow subroutine ...