??? 11/23/05 20:59 Read: times |
#104074 - Not relevant to the 8-bit processors Responding to: ???'s previous message |
Sudheer Gaddipati said:
Can someone give information regarding "Structure Padding", where and when it is required? In what context? Where have you seen the term used? - is this (part of) a homework assignment? In the context of 'C' (and probably other) compilers, padding is added by the compiler when the target processor has specific requirements about how multi-byte data objects are aligned in memory. eg, processors with word sizes of 16 bits or more often require that 2-byte objects start on an even address; or, if they don't require it, they perform very much better when it is so. similarly, 4-byte objects may be required (or preferred) to start at an address that is a multiple of 4. etc, etc. There is usually a control to override this. None of this matters to an 8051, because it can only ever access 1 byte at a time - so it makes no difference what address (odd, even, etc) it starts on! As Neil noted, the only time it may affect a system with an 8051 is when the 8051 part needs to share data with an alignment-sensitive part... |
Topic | Author | Date |
Structure Paddin | 01/01/70 00:00 | |
never in t he '51 | 01/01/70 00:00 | |
Not So fast | 01/01/70 00:00 | |
Neil, you are correct, but | 01/01/70 00:00 | |
Char byte | 01/01/70 00:00 | |
multi-byte characters | 01/01/70 00:00 | |
Not relevant | 01/01/70 00:00 | |
CHAR_BITS >= 8 | 01/01/70 00:00 | |
The char bytes back | 01/01/70 00:00 | |
Not relevant to the 8-bit processors | 01/01/70 00:00 | |
Windoze | 01/01/70 00:00 | |
That's a good one :) | 01/01/70 00:00 | |
XP | 01/01/70 00:00 | |
XP means | 01/01/70 00:00 | |
xp never crashes... | 01/01/70 00:00 | |
applications | 01/01/70 00:00 | |
two things coming to mind | 01/01/70 00:00 | |
[OT] Keil?![]() | 01/01/70 00:00 |