I believe it depends on the compiler more than the OS. Generally compilers will store the bit-field in the smallest unit it can. Some compilers will store the bit-field from high to low order and others will do it vice-versa. Franco Gasperino Cutting Edge Communications, Inc. 509-444-INET awe@cet.com On Thu, 25 Sep 1997, George wrote: > I know Daniel mentioned that bitfields aren't exactly portable, but how > portable are they? > > I have a project in mind to revamp the flag system of CircleMUD to allow > *much* easier addition of extra flags. (You'll still have to convert the > pfile though.) I have two different approaches in mind, one in bitfields, > one with bitvectors, both seem the same in terms of complexity. > > Will be a really cool change.... > > -- > George Greer - Me@Null.net | Genius may have its limitations, but stupidity > http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard > > > +------------------------------------------------------------+ > | Ensure that you have read the CircleMUD Mailing List FAQ: | > | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | > +------------------------------------------------------------+ > +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/08/00 PST