Re: [cc65] bit-fields

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2009-08-30 20:28:50
On Sun, Aug 30, 2009 at 01:31:20PM +0200, silverdr@wfmh.org.pl wrote:
> Looks like you did it! The emitted code seems also relatively compact.

The code generated by the head branch is better in many respects than what is
generated by 2.12.0.

> Sure - I shouldn't bother much about the uninitialised part of the
> struct representation but am simply flagging that as it seems one byte
> is differently handled than the other - it makes me suspicious and
> possibly it might be worth checking for bugs there...

As Groepaz has already pointed out, this is because the structure is
uninitialized. Just initialize it my making it static or overlaying a union.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sun Aug 30 20:31:23 2009

This archive was generated by hypermail 2.1.8 : 2009-08-30 20:31:24 CEST