bitfields

Jarrett Billingsley jarrett.billingsley at gmail.com
Thu Jun 18 08:19:47 PDT 2009


On Thu, Jun 18, 2009 at 10:28 AM, novice2<sorry at noem.ail> wrote:
> Jarrett Billingsley Wrote:
>
>> It's entirely possible to have two different C compilers
>> output different code for the same bitfield definitions.  For that
>
> Dut how is include files for interfacing is published officialy? For example Sun Java SDK .h files have bitfields to interfacing with java VM (without specifing wich compiler must be used).

I would imagine they're depending on undefined behavior and just
hoping for the best ;)  As I said, most compilers do what you'd expect
them to, it's just that there's the possibility that they won't.


More information about the Digitalmars-d-learn mailing list