Am 18.07.2010 00:37, schrieb 谢继雷: >> >> unsigned char bdata a; >> sbit a0 = a^0; >> sbit a1 = a^1; >> sbit a2 = a^2; >> >> thus, allocate bit variable (a0, a1, a2) within the bit-addressable >> byte variable (a). >> >> Is this possible in SDCC? >> > Though I can use absolute address by __at(), but I'm wondering if the > compiler can allocate the appropriate bit addressable byte for me. >
Any reason bitfields won't do for you? Philipp ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Sdcc-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sdcc-user
