[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
"as" data alignment bug
From: |
Sherbert, Shannon |
Subject: |
"as" data alignment bug |
Date: |
Wed, 19 Sep 2001 14:53:02 -0500 |
As version 2.10.91 from the IA64 Redhat release 7.1.
I Think there is a bug in the way "as" is aligning the data when I
compile and data assembly file. For example the following snippit does
not compile correctly.
Testasm:
.byte 0x11 0x22 0x33 0x44 0x55 0x66
.word 0x0077
.byte 0x88
.word 0x0099
.word 0x00aa
.byte 0xbb
.byte 0xcc
.byte 0xdd
.end
this would fit a structure that looks like this C style:
#pragma pack(1)
struct _testasm
{
char bytes[6];
short word1;
char byte1;
short word2;
short word3;
char byte2[3];
}
#pragma pack()
when I compile the Assembly above I get this
11 22 33 44 55 66 77 00 88 00 99 00 aa 00 bb cc
dd
but I am expecting
11 22 33 44 55 66 77 00 88 99 00 aa 00 bb cc dd
I have tried many different options in "info as"(like .balign, .align,
etc) but none seem to make any difference.
The IA32 "as" compiles this as I would expect it to.
Thank
Shannon
- "as" data alignment bug,
Sherbert, Shannon <=