Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Jul 2000 10:26:27 -0400 (EDT)
From:      Andrew Gallatin <gallatin@cs.duke.edu>
To:        Taichu Tanaka <taichu@ihas.nagoya-u.ac.jp>
Cc:        freebsd-alpha@FreeBSD.ORG
Subject:   Re: Linux/alpha emulation available
Message-ID:  <14718.61754.3971.667147@grasshopper.cs.duke.edu>
In-Reply-To: <20000726220603N.taichu@ihas.nagoya-u.ac.jp>
References:  <14717.2828.454006.745321@grasshopper.cs.duke.edu> <20000726220603N.taichu@ihas.nagoya-u.ac.jp>

next in thread | previous in thread | raw e-mail | index | archive | help


Taichu Tanaka writes:
 > Hello, 
 > 
 > On Tue, 25 Jul 2000 00:04:47 -0400 (EDT),
 > Andrew Gallatin <gallatin@cs.duke.edu> wrote:
 > > I have been working on getting the linulator going on FreeBSD/alpha.
 > > What I have right now is in an alpha-test state.  I'm looking for
 > > feedback on how it works and pointers to important apps to try.
 > 
 > I've tested the Compaq C compiler and Compaq Fortran.
 > 
 > Our environment is
 >    4.1-RC, PC-164LX 21164A 533MHz 
 >    linux_base-6.1
 >    linux_devtools-6.1.
 > 
 > Result:
 >   Compaq C (ccc-6.2.9.002-2) compiles just fine, with some condition;
 > 
 >    . Compiled executable must be brandelf'ed with "-t Linux".
 > 
 >    . I had to link the objects statically (i.e., with "-static").
 >      Shared executable claims as
 >        % ./a.out: error in loading shared libraries: libots.so: 
 >          ELF file OS ABI invalid.
 >      (But this might be my installation fault...)

Odd.  It works here:
	4.1-RC, UP1000, 600MHz 21264A
	linux_base-6.1
	linux_devtools-6.1.
	ccc-6.2.9.002-2
	cpml-5.0.0
	libots-2.2.7

<10:09am>thunder/gallatin:tmp>cat hello.c 
#include <stdio.h>

main()
{
        printf("hello world \n");
}
<10:09am>thunder/gallatin:tmp>make CC=/compat/linux/usr/bin/ccc hello
/compat/linux/usr/bin/ccc -O -pipe  hello.c  -o hello
<10:09am>thunder/gallatin:tmp>./hello 
hello world 
<10:09am>thunder/gallatin:tmp>ldd hello
hello:
        libc.so.6.1 => /lib/libc.so.6.1 (0x0000000040004000)
        libots.so => /usr/lib/libots.so (0x0000000040238000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x0000000160100000)


Its probably an installation issue.  I just beat on the symlinks until 
it worked ;)

Did you run the
/compat/linux/usr/lib/compaq/ccc-6.2.9.002-2/alpha-linux/bin/create-comp-config.sh 
script?  If I install the rpm with -vvv, I noticed this script was
generating error messages.   I ran it manually, using
/compat/linux/bin/sh.  I'm not sure if this helped or not..

 >    I've checked the performance of the compiler. With my
 > numerical simulation model, the executable with CCC runs
 > about 40% faster than that with gcc-2.95.1. 
 > Naturally, the performance is as good as Compaq C with
 > Linux/Alpha (that I used months ago).

Cool!  I'm glad to hear it.

 >    I couldn't compile with the Compaq Fortran for Linux
 > Alpha (cfal-1.0.7), with the shared library problem.
 > Again this might be my fault in the installation.

I'll have to defer to somebody else for testing the fortran compiler.
I disavow any knowledge of fortran ;-)

 > Anyway,
 > 
 > > If you're interested in producing anything resembling fast code, try
 > > to get this working.  The Tru64 version of this compiler beats gcc
 > > hands-down & I imagine the linux version also kicks some serious butt.
 > 
 > my dissatisfaction with the performance of the C compiler is 
 > cleared. Thanks a lot.

You're welcome.   I"m glad I could help!

Drew


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-alpha" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14718.61754.3971.667147>