[comp.sys.mips] Allignment

ujjwal@hubcap.clemson.edu (WILLY CHUCK) (04/16/91)

I  am looking for an answer to the following problem. 

We do not want any memory misallignment correction on DEC 3100.

But we can not find any possible ways to bypass memory misallignment

correction. For example, if we define a structure as

                              struct st {

                                          char a ;
                                          int d;
                                         } ;

and do sizeof ( struct st), we get an answer of 8 bytes. That's because
three filler bytes are stuffed in to take care of misallignment.

But we want sizeof ( struct st ) as 5 bytes, i.e, we want packed representation
for our work. Is there any possible way to do that ??

We have checked compiler options and can not find any suitable solution. Can

any one suggest solutions to this problem with simple examples ?? Is there

anything available in GNU C compiler that will help us ??