[Bug c/18620] double data reversal
zhangyijin_2008 at 163 dot com
gcc-bugzilla@gcc.gnu.org
Tue Nov 23 05:40:00 GMT 2004
------- Additional Comments From zhangyijin_2008 at 163 dot com 2004-11-23 05:40 -------
(In reply to comment #1)
> Are you sure really sure?
> Arm is both a bigendian and little-endian target.
When I compiler with "arm-linux-gcc -S test.c"
//test.s
.file "test.c"
.text
.align 2
.global main
.type main, %function
main:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
mov ip, sp
stmfd sp!, {r4, fp, ip, lr, pc}
sub fp, ip, #4
sub sp, sp, #8
adr r3, .L2
ldmia r3, {r3-r4}
str r3, [fp, #-24]
str r4, [fp, #-20]
mov r3, #0
mov r0, r3
sub sp, fp, #16
ldmfd sp, {r4, fp, sp, pc}
.L3:
.align 2
.L2:
.word 1076407828 ;HERE OK
.word 2061584302 ;
.size main, .-main
.ident "GCC: (GNU) 3.4.3"
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18620
More information about the Gcc-bugs
mailing list