Messages in this thread | | | Date | Sun, 13 Feb 2000 01:30:37 +0100 | From | Philipp Rumpf <> | Subject | Re: [PATCH] isa_{read,write}{w,l} fixed |
| |
> Alas, you can't. If accessing quantities of type short is exceptionally > slow, then it may well be that the ABI decress Thou Shalt Pad. gcc has
any ABI that actually does this ? Actually it wouldn't make sense for an ABI to pad
struct { u16 x; u16 y; } but not pad u16 a[2]; As sizeof(a) == 2 * sizeof(u16) in the latter case, sizeof(u16) would be != 2 ...
So, going from there, would it ever make sense for an ABI to pad struct { u8 a; u8 b; u16 c; } ?
> __attribute__(packed) to allow you to work around this. ^ ^ YM __attribute__((packed)). And I still claim that isn't actually required on any architecture, and just adds unnecessary gcc-specificness.
Philipp
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |