On Mon, Mar 02, 2009 at 11:58:39AM -0500, Lennart Sorensen wrote:
> On Sat, Feb 28, 2009 at 10:24:00AM +1000, Greg Ungerer wrote:
> > Send the disassemblies to this list. Someone might be able to spot
> > a problem.
> 
> OK, slightly large but here goes.
> 
> I have compiled with gcc 4.1.1 + uclibc 0.9.27 which works and with gcc
> 4.3.2 + uclibc 0.9.30 which does not work.
> 
> The command line to compile in both cases was:
> m68k-uclinux-gcc -m5200 -Wall -elf2flt -s -o helloworld hello.c
> 
> I disassembled them using objdump -d on the .gdb file generated by
> each build.  The 4.1.1 build is 4936 bytes while the 4.3.2 build is
> 6528 bytes.
> 
> I have attached the two disassemlies.

In addition here is the result of:

m68k-uclinux-gcc -m5200 -Wall -elf2flt -S -o hello.S hello.c

There are a few small differences in the assembly generated for the code
itself (even without considering uclibc).  No idea if they indicate any
problem or not.

-- 
Len Sorensen
#NO_APP
        .file   "hello.c"
        .globl  __main
        .section        .rodata
.LC0:
        .string "Hello world!"
        .text
        .align  2
        .globl  main
        .type   main, @function
main:
        link.w %fp,#0
        jbsr __main
        pea .LC0
        jbsr puts
        addq.l #4,%sp
        clr.l %d0
        unlk %fp
        rts
        .size   main, .-main
        .ident  "GCC: (GNU) 4.1.1"
#NO_APP
        .file   "hello.c"
        .section        .rodata
.LC0:
        .string "Hello world!"
        .text
        .align  2
        .globl  main
        .type   main, @function
main:
        link.w %fp,#0
        pea .LC0
        jsr puts
        addq.l #4,%sp
        clr.l %d0
        unlk %fp
        rts
        .size   main, .-main
        .ident  "GCC: (GNU) 4.3.2"
        .section        .note.GNU-stack,"",@progbits
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to