View Full Version: What is a "device driver"?

C++ Learning Community > C++ in General > What is a "device driver"?


Title: What is a "device driver"?
Description: Linker question


dr voodoo - September 4, 2003 07:33 PM (GMT)
I was playing around with the BC++ commandline Linker and found some switches that I really don't know what they are supposed to mean:
QUOTE
The following options tell the linkers what type of application image to build.

The following options are not needed if you include a module definition file in your compile and link commands that specifies the type of 32-bit application you intend to build, except for device drivers. If your target type is a device driver, the /ad option must be passed to the linker directly and can not be set in the module definition file.

Link using 32-bit Windows API
(Command-line switch = /aa)
The linker generates a protected-mode executable that runs using the 32-bit Windows API.

Link for 32-bit Windows device driver
(Command-line switch = /ad)
When you use this switch, the application type is set to NATIVE, and the image checksum is calculated and set.

Link for 32-bit console application
(Command-line switch = /ap)
The linker generates a 32-bit protected-mode executable file that runs in console mode.

Link 32-bit .DLL file
(Command-line switch = /Tpd)
The linker generates a 32-bit protected-mode Windows .DLL file.

Link 32-bit .EXE file
(Command-line switch = /Tpe)
The linker generates a 32-bit protected-mode Windows .EXE file.

I understand what /aa /ap and /Tpd are supposed to be but what's with /ad and /Tpe?




* Hosted for free by InvisionFree