From owner-freebsd-hackers Thu Mar 1 18:43:43 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by hub.freebsd.org (Postfix) with ESMTP id 3BCAE37B71A for ; Thu, 1 Mar 2001 18:43:37 -0800 (PST) (envelope-from gallatin@cs.duke.edu) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.9.3/8.9.3) with ESMTP id VAA12597; Thu, 1 Mar 2001 21:43:35 -0500 (EST) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.11.2/8.9.1) id f222h5605022; Thu, 1 Mar 2001 21:43:05 -0500 (EST) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15007.2233.875119.730345@grasshopper.cs.duke.edu> Date: Thu, 1 Mar 2001 21:43:05 -0500 (EST) To: John Wilson Cc: freebsd-hackers@freebsd.org Subject: Re: Compiling FreeBSD kernel with Sun's cc In-Reply-To: <26889712.983496314142.JavaMail.imail@prance.excite.com> References: <26889712.983496314142.JavaMail.imail@prance.excite.com> X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG John Wilson writes: > Has anyone tried using Sun's optimizing cc compiler (for Solaris x86) to > compile the kernel to x86 assembly, assemble it with gas, and link with GNU > ld? > > It seems possible for a user-level application that is source-compatible > with Solaris (because cc will output assembly with system call names rather > than numbers, and gas/ld fill in the system-specific blanks), but compiling > the kernel seems more complicated. > > Is it very difficult to do / a stupid idea? > > John It sounds like a reasonable idea, if the compiler is much better than gcc and its syntax is reasonably compatable. Is their compiler much better than gcc? On the alpha, Compaq's compiler is substantially better than gcc, so I spent some time trying to get the FreeBSD/alpha kernel to compile using Compaq's C compiler. The main barrier is that gcc and ccc have different inline asm syntax. I spent most of an afternoon translating our inline asms to ccc syntax, then got distracted and never got back to it... Drew ------------------------------------------------------------------------------ Andrew Gallatin, Sr Systems Programmer http://www.cs.duke.edu/~gallatin Duke University Email: gallatin@cs.duke.edu Department of Computer Science Phone: (919) 660-6590 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message