From owner-freebsd-questions Wed Apr 11 11:30:54 2001 Delivered-To: freebsd-questions@freebsd.org Received: from hotmail.com (f97.law11.hotmail.com [64.4.17.97]) by hub.freebsd.org (Postfix) with ESMTP id 2F71C37B422 for ; Wed, 11 Apr 2001 11:30:52 -0700 (PDT) (envelope-from burnscharlesn@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 11 Apr 2001 11:30:51 -0700 Received: from 24.21.122.151 by lw11fd.law11.hotmail.msn.com with HTTP; Wed, 11 Apr 2001 18:30:51 GMT X-Originating-IP: [24.21.122.151] From: "Charles Burns" To: bsdnewbie@hotmail.com, freebsd-questions@freebsd.org Subject: Re: _Can I use C++ to write device drivers? Date: Wed, 11 Apr 2001 11:30:51 -0700 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 11 Apr 2001 18:30:51.0393 (UTC) FILETIME=[89403710:01C0C2B5] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG (Pre-note. I am not a driver expert by any means) You can write a driver for FreeBSD in any language that can compile, i.e., any non-interpreted language. C++ may not be the best choice for a driver because it has slightly higher overhead in some cases than C, and many of its advantages probably wouldn't be very useful in writing drivers. Plain old C is the most popular language for writing drivers in the Unix world, and most drivers are written in either C or a mixture of C and assembly. >From: "bsdnewbie bsdnewbie" >To: freebsd-questions@freebsd.org >Subject: _Can I use C++ to write device drivers? >Date: Thu, 12 Apr 2001 02:14:30 +0800 > >hi, > I want to write my new driver by using C++. However, I do not know >that >if device drivers of FreeBSD can be written in C++. And, if can, how about >the performance, a little slower or can not accept at all? > >thanks in advance > >bsdnewbie > >_________________________________________________________________________ >Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-questions" in the body of the message _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message