From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Matt Minnis" To: gcc@gcc.gnu.org Subject: Bit Fields Date: Thu, 07 Dec 2000 06:58:00 -0000 Message-id: <5.0.0.25.2.20001207085408.0270d658@mail.prefres.com> References: <20001207123036.A7404@lorien.int.gecko.de> X-SW-Source: 2000-12/msg00197.html Is there a way to dynamically define bit fields in a integer? I know how to define them in code, but how can it be done for purposes of reading in a file that would be easier to deal with if there was a way to do this. Basically, read in a file describing internal registers of a micro controller of some sort, and have the bit fields to designate the different functions of some of the bits. I know this can be done via a mask, but I would like to know if this is possible? Thanks, Matt Minnis