Re: How to talk to hardware devices in C
- From: "Malcolm McLean" <regniztar@xxxxxxxxxxxxxx>
- Date: Mon, 6 Aug 2007 21:39:02 +0100
"x01001x" <xemail@xxxxxxxxxxxx> wrote in message news:1186395001.887098.154270@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
When programming in C (not C++) how does one send information to aIn the same way, essentially.
hardware device such as a video card or modem? How is this done in
Linux C programming versus Microsoft C programming?
Let a third party, maybe the OS authors or maybe someone else, produce a C-callable library that makes the hardware do things. For instance under Linux you can call Xlib to open a window and draw pixels on it.
If you are asking how to implement something like Xlib itself, the answer is with a mixture of C and assembler, that maybe writes to the video memory on vertical retrace interrupts or similar - I no longer know exactly how it is done.
--
Free games and programming goodies.
http://www.personal.leeds.ac.uk/~bgy1mm
.
- Follow-Ups:
- Re: How to talk to hardware devices in C
- From: x01001x
- Re: How to talk to hardware devices in C
- References:
- How to talk to hardware devices in C
- From: x01001x
- How to talk to hardware devices in C
- Prev by Date: Re: Pointers
- Next by Date: Re: Trivial
- Previous by thread: Re: How to talk to hardware devices in C
- Next by thread: Re: How to talk to hardware devices in C
- Index(es):
Relevant Pages
|