Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!rex!uflorida!gatech!hubcap!ujjwal From: ujjwal@hubcap.clemson.edu (WILLY CHUCK) Newsgroups: comp.sys.mips Subject: Allignment Keywords: Allignment Message-ID: <1991Apr16.030710.28382@hubcap.clemson.edu> Date: 16 Apr 91 03:07:10 GMT Organization: Clemson University Lines: 25 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 ??