[lkml]   [2001]   [Sep]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
hi i need help i have a data struct that matchs some hardwear but 
gcc is alignin it this meins it is out of sync whit the hardwear
char is 2 bytes
long double is 12 bytes
will thats what gcc thinks

so i need to tell gcc not to align the data struct

may be like

noalign struct ........

the main prob is whit long double st[8]

gcc make long double 12 bytes when it need to be 10 bytes

think you

struct _i386_fpu_st
long long significand;
unsigned char exponent ;
/* unsigned long test ; */

} ;

struct _i386_fpu
unsigned short control ;
unsigned short rev0 ;
unsigned short status ;
unsigned short rev1 ;
unsigned short tag ;
unsigned short rev2 ;
unsigned long instructionPointer ;
unsigned short instructionSelector ;
unsigned short opcode ;
unsigned long operandPointer ;
unsigned short operandSelector ;
unsigned short rev3 ;
long double st[8] ;

/* struct _i386_fpu_st st[8] ; */

unsigned long rev[400] ;

} ;

extern struct _i386_fpu * i386_fpuInit(void) ;
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

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