Re: writing drivers using C++
- From: David Schwartz <davids@xxxxxxxxxxxxx>
- Date: Sat, 08 Sep 2007 01:51:56 -0700
On Sep 6, 6:30 am, phil-news-nos...@xxxxxxxx wrote:
But you will find a lot of people whose skills you need for doing driver
writing won't write code for such a kernel. C++ is a more abstract kind
of language. People that work at lower levels on things like hardware
tend to also be people that work better without using abstractions. I
know I am one of them; abstractions hinder my programming, not help, in
most cases. It just depends on the application's ability to be represented
in an abstract way. A web site is easy to abstract. A piece of hardware
that I need to interface directly to bare metal with does cannot.
This was precisely the same argument used to object to using C to
write drivers (rather than assembly) and it's wrong for precisely the
same reason. The idea that C++ hides things from you that are more
apparent in C is a myth. You can make things incomprehensible or clear
as day in either language with equal ease or difficulty.
DS
.
- Follow-Ups:
- Re: writing drivers using C++
- From: Rainer Weikusat
- Re: writing drivers using C++
- References:
- writing drivers using C++
- From: RRC
- Re: writing drivers using C++
- From: Jan Kandziora
- Re: writing drivers using C++
- From: Lew Pitcher
- Re: writing drivers using C++
- From: Tim Roberts
- Re: writing drivers using C++
- From: phil-news-nospam
- writing drivers using C++
- Prev by Date: Re: writing drivers using C++
- Next by Date: device driver wake up problem on Ubuntu 7.04 (kernel 2.6.20)
- Previous by thread: Re: writing drivers using C++
- Next by thread: Re: writing drivers using C++
- Index(es):
Relevant Pages
|