From owner-freebsd-alpha Tue Jul 9 15:53:26 2002 Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D3FF037B400 for ; Tue, 9 Jul 2002 15:53:23 -0700 (PDT) Received: from hawk.mail.pas.earthlink.net (hawk.mail.pas.earthlink.net [207.217.120.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E59543E58 for ; Tue, 9 Jul 2002 15:53:23 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from pool0275.cvx22-bradley.dialup.earthlink.net ([209.179.199.20] helo=mindspring.com) by hawk.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 17S3q1-0006c4-00; Tue, 09 Jul 2002 18:52:05 -0400 Message-ID: <3D2B68EA.7FE85FC7@mindspring.com> Date: Tue, 09 Jul 2002 15:51:22 -0700 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Idar Tollefsen Cc: freebsd-alpha@freebsd.org Subject: Re: Compaq-CC, the next steps.... References: Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Idar Tollefsen wrote: > >> FreeBSD and Linux don't use the same ELF format, do they? > > Yes. > = > OK. Thanks for clearing that up. As someone else pointed out, the compiler in question cranks out assembly language, so as long as the GNU assembler supports its output, it doesn't really care about ELF format. That's how the compiler port is working in this case, so it doesn't know from ELF. But I can, and do, use Linux binary ELF code from third party vendors in my FreeBSD kernel (such modules are, by their nature, not GPL'ed). As long as there are no external references to Linux-specific code (e.g. system call traps), it doesn't matter. One of the things people discussed recently was whether it was the compiler, or the Compaq math library itself, which was the cause of certain applications (e.g. the "Blade" encoder) going much faster. To test their theory, they linked FreeBSD programs against the Compaq provided math library, a binary in ELF format. > >> =CCf that's the case, is there really a speed increase to be > >> gained? And even if it is, do we really want the FreeBSD ports > >> collection to prefer building Linux/Alpha binaries over native > >> binaries on the Alpha? > = > > You seem to believe that the Linux compatability module is an > > emulator. It's not. It's an ABI. There are no performance > > penalties for running Linux binaries (other than those imposed > > by use of the Linux system interfaces by virtue of their design). > = > Well, yes, I suppose I was under the impression that it was > an emulator. Although I have seen references to the contrary > before, this is the first time someone has actually explained > the workings of it. Thank you. No problem. A lot of people make this mistake, because FreeBSD, very early on, made the mistake of calling it an "emulator", when it wasn't an emulator (I guess "Linuxulator" was just too "cute" to pass up). It turns out that for certain applications, Linux binaries actually ran faster on FreeBSD than they did on Linux, for a long time. I haven't seen recent Linux compared with recent FreeBSD, though. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message