Subject: Re: CVS commit: src/sys/arch/sgimips
To: None <petrov@netbsd.org>
From: None <cgd@broadcom.com>
List: port-mips
Date: 10/08/2003 11:51:43
At Wed, 8 Oct 2003 18:38:21 +0000 (UTC), "Andrey Petrov" wrote:
> We use gcc, and even though I tried on sparc64 I'd be surprised if mips port
> does better with this regard. I also would argue because of driver which is used
> for all ports.

GCC 3.2.3 seems to do OK on MIPS.  (the local mods we've made to it
wouldn't change this behaviour.)

I'd expect 3.3.1 and later to do similarly well, but haven't checked.



cgd
--
16 [ldt-sj3-010] xx % cat /tmp/x.c

unsigned char foo(int *x)
{
        return ((x[1] >> 8) & 0xff);
}
17 [ldt-sj3-010] xx % sb1-elf-gcc -v -O2 -S -o - /tmp/x.cReading specs from /projects/bbp/sbtools/x86-linux-rh7.3/sb1-elf-2.7.6/bin/../lib/gcc-lib/sb1-elf/3.2.3/specs
Configured with: /home/cgd/proj/sb/systemsw-2.7.6/lin/systemsw/tools/build/build.20030710.0021.59.sb1-elf/gcc-pass2-src/configure --target=sb1-elf --prefix=/pro
jects/bbp/sbtools/x86-linux-rh6.0/sb1-elf-2.7.6 --disable-nls --with-newlib --wi
th-gnu-as --with-gnu-ld
Thread model: singlegcc version 3.2.3 with SiByte modifications
 /projects/bbp/sbtools/x86-linux-rh7.3/sb1-elf-2.7.6/bin/../lib/gcc-lib/sb1-elf/3.2.3/cc1 -lang-c -v -iprefix /projects/bbp/sbtools/x86-linux-rh7.3/sb1-elf-2.7.
6/bin/../lib/gcc-lib/sb1-elf/3.2.3/ -D__GNUC__=3 -D__GNUC_MINOR__=2 -D__GNUC_PATCHLEVEL__=3 -D__GXX_ABI_VERSION=102 -Dmips -DMIPSEB -DR4000 -D_mips -D_MIPSEB -D
_R4000 -D__mips__ -D__MIPSEB__ -D__R4000__ -D__mips__ -D_MIPSEB -D_R4000 -D__mips -D__MIPSEB -D__R4000 -D__mips -D__OPTIMIZE__ -D__STDC_HOSTED__=1 -D__LANGUAGE_
C -D_LANGUAGE_C -DLANGUAGE_C -D__SIZE_TYPE__=unsigned int -D__PTRDIFF_TYPE__=int
 -D__mips_fpr=64 -U__mips -D__mips=64 -D__mips64 /tmp/x.c -quiet -dumpbase x.c -
O2 -version -o -GNU CPP version 3.2.3 with SiByte modifications (cpplib) [AL 1.1, MM 40] BSD Mip
s
GNU C version 3.2.3 with SiByte modifications (sb1-elf)
        compiled by GNU C version 3.2.3 with SiByte modifications.
ignoring duplicate directory "/projects/bbp/sbtools/x86-linux-rh7.3/sb1-elf-2.7.
6/sb1-elf/include"
ignoring duplicate directory "/projects/bbp/sbtools/x86-linux-rh6.0/sb1-elf-2.7.
6/lib/gcc-lib/sb1-elf/3.2.3/include"
ignoring duplicate directory "/projects/bbp/sbtools/x86-linux-rh6.0/sb1-elf-2.7.
6/sb1-elf/sys-include"
ignoring duplicate directory "/projects/bbp/sbtools/x86-linux-rh6.0/sb1-elf-2.7.
6/sb1-elf/include"
#include "..." search starts here:
#include <...> search starts here:
 /projects/bbp/sbtools/x86-linux-rh7.3/sb1-elf-2.7.6/lib/gcc-lib/sb1-elf/3.2.3/i
nclude
 /projects/bbp/sbtools/x86-linux-rh7.3/sb1-elf-2.7.6/sb1-elf/sys-include
 /projects/bbp/sbtools/x86-linux-rh6.0/sb1-elf-2.7.6/include
End of search list.
        .file   1 "/tmp/x.c"
        .section .mdebug.abiO64
        .previous
        .text
        .align  2
        .align  3
        .globl  foo
        .ent    foo
foo:
        .frame  $sp,0,$31               # vars= 0, regs= 0/0, args= 0, extra= 0
        .mask   0x00000000,0
        .fmask  0x00000000,0
        .set    noreorder
        .set    nomacro
        j       $31
        lbu     $2,6($4)
        .set    macro
        .set    reorder

        .end    foo