Thread Closed

Good books for systems programming

 
Share Thread Thread Tools
Jul20-05, 01:32 PM   #1
 

Good books for systems programming


I need a good book for systems programming. Basically how to build drivers and programs on the computer using languages(preferable C) to interact with an outside devices like joysticks or to control things like motors, etc. Can any one recommend one?
PhysOrg.com
PhysOrg
science news on PhysOrg.com

>> Galaxies fed by funnels of fuel
>> The better to see you with: Scientists build record-setting metamaterial flat lens
>> Google eyes emerging markets networks
Jul20-05, 11:48 PM   #2
 
Well, since no one has responded I'll give you my 2 cents. I've never programmed drivers, but I'd imagine writing them well is mainly all about having good documentation about the hardware as well as the OS. Without it, its pretty difficult to program a good driver. From there, I would just take a 'skeleton' of a similar driver I'd want to implement if I could get the source code. A good source for this is drivers in the Linux kernel source. There you have all types of drivers from basic disk drivers even to things like HAM radio drivers, and even a few video drivers. No ATI/Nvidia source though :-)

This looks like a good one from O'Reilly on Linux Drivers: http://www.oreilly.com/catalog/linuxdrive3/

In the windows world theres the DDK (Driver Development Kit) which has decent documentation on MSDN, which I have copy of with Visual C++ .NET 2003.

When writing a driver for either Windows or Linux, keep in mind that you are in kernel mode and can potentially crash the system or cause it to become unstable. Bad drivers are #1 cause of crashes these days on both Windows and Linux.

BTW joysticks/mice are pretty simple and seen like a good place to start.
Jul22-05, 02:01 AM   #3
 
Quote by sid_galt
I need a good book for systems programming. Basically how to build drivers and programs on the computer using languages(preferable C) to interact with an outside devices like joysticks or to control things like motors, etc. Can any one recommend one?
What kind of computer? What OS? Details!

If you want to write software that runs on an embedded chip and interacts with hardware devices, Check out BASIC Stamp -- which can be bought at Radio Shack. The starting kit is under $100.00. You can hook motors up to this kit as it is extendible. It supports assembly language and C, and can be interfaced from your Windows based PC.

If you want to write device drivers for MS-Windows, there are plenty of books on the subject.

As for interacting with mouse and joysticks, there are standard API calls for Windows and Linux.
Jul24-05, 10:39 PM   #4
 

Good books for systems programming


Quote by SteveRives
As for interacting with mouse and joysticks, there are standard API calls for Windows and Linux.
It seems like hes more interested in knowing the details of how those drivers are implemented (which actually isn't that interesting for those simple devices) rather than knowing how to use them.
Jul25-05, 09:59 AM   #5
 
Quote by SteveRives
What kind of computer? What OS? Details!
A normal desktop computer.
OS? Windows or Linux, whichever is cheaper and easier.

If you want to write software that runs on an embedded chip and interacts with hardware devices, Check out BASIC Stamp -- which can be bought at Radio Shack. The starting kit is under $100.00. You can hook motors up to this kit as it is extendible. It supports assembly language and C, and can be interfaced from your Windows based PC.
Something like that. Specifically, how to create device drivers for a hardware device so that one can simply plug in the hardware device, install the drivers and use it.
Jul25-05, 11:51 AM   #6
 
hmm I guess you want to write drivers for windows NT os
hmm you should look on amazon for WDM just type it in a search
and it will find you some good resources, but of course you have to remember that without an assembly language there is no drivers and also they're really difficult to write.
http://www.freewebs.com/four-f/
here is the tutorial for writing kernel drivers in masm, its rather for malware coders but of course its all about drivers

Writing Windows Wdm Device Drivers: Covers Nt 4, Win 98, and Win 2000
you should definitly buy this book if you think of writing a windows drivers
for more resources just like i said before look at amazon WDM
ciao

w8 i forgot to say, if you want to you may msg me and a send you some good resources on writing drivers under winnt you may even learn a lot from them but i think its usually better for beginers to buy a paper book and learn from it the basics or something more than that and then look for the resources on the net
ciao
Thread Closed
Thread Tools


Similar Threads for: Good books for systems programming
Thread Forum Replies
Books about Designing Building Mechanical Systems Mechanical Engineering 4
Books for Programming? Programming & Comp Sci 6
any good programming challenge using the c language. Programming & Comp Sci 12
Good Online Programming Contest(C/C++) Computing & Technology 1
Need a good programming book Science Textbook Discussion 27