Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/01/03 22:46
Read: times


 
#35370 - RE: ANSI Bitfields
"two PIC compilers ... allow the placement of structures on ports, but both have strayed from the ANSI specs to achieve it (presumably)"

No - that's not what Jon et al were saying.
The point is that the ANSI spec gives the implementation complete freedom to allocate the bits in bit fields howsoever it sees fit; in particular, the allocation could change between compiler releases, or with different compile options, or between compilations, or even between variables in the same module!
So, unless your compiler manual specifically guarantees a particular organisation, it is unsafe to rely upon it!


List of 18 messages in thread
TopicAuthorDate
Keil C - How to place Structure on Port            01/01/70 00:00      
RE: Keil C - How to place Structure on Port            01/01/70 00:00      
RE: Keil C - How to place Structure on Port            01/01/70 00:00      
RE: Keil C - How to place ... Erik            01/01/70 00:00      
RE: Keil C - How to place Structure on Port            01/01/70 00:00      
RE: Keil C - How to place Structure on Port            01/01/70 00:00      
RE: Keil C - How to place Structure on Port            01/01/70 00:00      
RE: Keil C - How to place Structure on Port            01/01/70 00:00      
RE: Keil C - How to place Structure on Port            01/01/70 00:00      
RE: Keil C - Andy            01/01/70 00:00      
RE: Keil C - Andy            01/01/70 00:00      
RE: Keil C - Peter            01/01/70 00:00      
RE: Keil C - Peter            01/01/70 00:00      
RE: Keil C - Michael            01/01/70 00:00      
RE: Keil C - Peter            01/01/70 00:00      
RE: Keil C - How to place Structure on Port            01/01/70 00:00      
RE: Keil C - How to place Structure on Port            01/01/70 00:00      
RE: ANSI Bitfields            01/01/70 00:00      

Back to Subject List