A
A
Alexander Garelkin2016-05-27 03:06:55
Windows
Alexander Garelkin, 2016-05-27 03:06:55

What is a HAL and how is it different from a driver?

What is a HAL and how is it different from a driver?
I read in a book / Wikipedia and did not understand

Answer the question

In order to leave comments, you need to log in

3 answer(s)
Y
Yuri Chudnovsky, 2016-05-27
@Frankenstine

On personal computers, HAL can essentially be thought of as a motherboard driver.

Is this line from Wikipedia not enough for you?

A
Alexey, 2016-05-27
@alsopub

If I understand correctly, then:
The driver provides an interface for accessing the hardware.
HAL provides a unified interface for accessing hardware.
In the case of a driver, you may also need a program from the manufacturer to work.
In the case of HAL, any program will do, since the HAL commands are the same for this type of device.

R
res2001, 2016-05-27
@res2001

HAL is an intermediate layer between user applications and device drivers provided by the OS. Thanks to HAL, applications do not need, for example, to read a file, specify the block / sector / head number for reading from disk, but just specify the file name.
HAL provides a standard hardware interface for user applications, as well as interfaces for drivers.
Those. access to hardware in modern operating systems occurs as follows:
User application <-> HAL <-> device driver <-> device
Usually, there is an abstraction layer before HAL, or even more than one.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question