But it is sometimes used for such purposes (defining e.g. HW register 
content - and I adopted it as well) so I don't understand why it is used 
such way if it is not guaranted... Is there correct way for it?

BTW - my structure works in all other compilers I have used.

Thanks,
Hynek Sladky


Philipp Klaus Krause napsal(a):
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hynek Sladky schrieb:
> 
> 
>>It seems that second part of bitfield starts at next byte location from 
>>bit 0 :-(
> 
> 
> Why not? AFAIK the C standard doesn't guarantee alignment in bitfields,
> it doesn't even guarantee alignment in structures.
> 
> Philipp

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to