struct boundaries

Looking for a little help…

I want to force structs to map to 1-byte boundaries. Is there a command
line option or directive for qcc that will do this?

Thanks,
Mike Kadour
Electrical Engineering
University of Waterloo

There are two methods:

  1. add “#include <_pack1.h>” to your source.
  2. add “-fpack-struct” to your compiler options.

Either appear to work fine.

Randy Aeberhardt
Tantalus Systems Corp.

“Mike Kadour” <mjkadour@uwaterloo.ca> wrote in message
news:9e0sab$83q$1@inn.qnx.com

Looking for a little help…

I want to force structs to map to 1-byte boundaries. Is there a command
line option or directive for qcc that will do this?

Thanks,
Mike Kadour
Electrical Engineering
University of Waterloo