Re: writing drivers using C++



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



.



Relevant Pages

  • Re: VMS
    ... because it was tailored to the platform rather than the language. ... > best machine architecture (PDP-11, VAX, Alpha) and the best software. ... the hardware really didn't matter. ... applications and in the IT world bus speed is more important than ALU ...
    (comp.object)
  • Re: Cells compared to Flow-Based Programming
    ... Given that it's not even possible to proof hardware, ... a language with imperative features is inherently ... of the acquired company that they don't like. ...
    (comp.lang.lisp)
  • Re: a dozen cpus on a chip
    ... No nontrivial language can ever be proven to be imposible to crash. ... compilers still available which implement ISO M2. ... It is a common misconception that Lisp is always interpretted. ... various X86 machines the hardware does exist that could allow the OS ...
    (sci.electronics.design)
  • Re: Another transputer-inspired language?
    ... describe permanent ASIC/VLSI hardware devices. ... only support Verilog & VHDL. ... shrinking but the no of FPGA starts is exploding due to lowish NRE ... When I suggest the V++ language be modeled after ...
    (comp.sys.transputer)
  • Re: How much intelligence?
    ... Curt believes in things that have hardware that enables them to talk. ... have the same language skills we have. ... These representations of reality are represented in long-term memory, ...
    (comp.ai.philosophy)