From owner-freebsd-questions@FreeBSD.ORG Mon Mar 15 16:48:40 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A805016A4CE for ; Mon, 15 Mar 2004 16:48:40 -0800 (PST) Received: from out004.verizon.net (out004pub.verizon.net [206.46.170.142]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A04043D2F for ; Mon, 15 Mar 2004 16:48:40 -0800 (PST) (envelope-from cswiger@mac.com) Received: from mac.com ([68.161.120.219]) by out004.verizon.net (InterMail vM.5.01.06.06 201-253-122-130-106-20030910) with ESMTP id <20040316004839.NSMZ11989.out004.verizon.net@mac.com>; Mon, 15 Mar 2004 18:48:39 -0600 Message-ID: <40564E68.9060101@mac.com> Date: Mon, 15 Mar 2004 19:46:32 -0500 From: Chuck Swiger Organization: The Courts of Chaos User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Adam Bozanich References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Authentication-Info: Submitted using SMTP AUTH at out004.verizon.net from [68.161.120.219] at Mon, 15 Mar 2004 18:48:39 -0600 cc: questions@freebsd.org Subject: Re: [OT?] write C program with UTF16LE X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Mar 2004 00:48:40 -0000 Adam Bozanich wrote: > On Mon, 15 Mar 2004, Matthew Seaman wrote: >>Errr... no. Not even if you're using the Linux devtools to create a >>Linux executable. You're using the FreeBSD system libc. Same API, >>different code, different licencing terms. > > Yep, one look at /usr/include/stdio.h proves you right. Thanks... I (obviously) > didn't realize that. > > Now I'm very curious. If BSD has it's own C api, did it at one time have > it's own compiler? If so, what happened to it? Well, one can track down the original C compiler written by Kernighan & Ritchie. Somewhere around 1981, one can also find references to PCC, the "Portable C Compiler" by Aho & Johnson, which has largely been replaced by GNU's gcc since then. There's been some effort recently to make FreeBSD go using Intel's icc, as well. > Does gcc have to know about the different syscall calling conventions? GCC has to know about the local architecture's calling conventions. GCC does not need to know anything special about the system call interface defined by the kernel and libc. -- -Chuck