lkml.org 
[lkml]   [2000]   [Feb]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] isa_{read,write}{w,l} fixed
On Sun, Feb 13, 2000 at 01:30:37AM +0100, Philipp Rumpf wrote:

> > 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

> 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.

Some architectures like certain DSPs don't actually implement char or
short as 8 or 16 bit types but make all types 32 bit. While this is
not of interest for the kernel itself it may make using shared memory
for interfacing with such a DSP more entertaining.

Ralf

-
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/

\
 
 \ /
  Last update: 2005-03-22 13:56    [W:0.412 / U:0.712 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site