lkml.org 
[lkml]   [2000]   [Feb]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [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/

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