*** Welcome to piglix ***

Device independence


Device independence is the process of making a software application be able to function on a wide variety of devices regardless of the local hardware on which the software is used.

High Level Languages, both those with and without an explicit OPEN command, to open a file, often had the ability to abstractly refer to a data file:

In the early days of computer design and development up until about 1980, software was typically specifically written to operate on the specific hardware where the software was used. The software was intimately linked to the hardware, and could not function independent of it. As computers became less expensive generalized personal computers, the concept of peripheral devices was introduced, where the base hardware could have a variety of different accessory devices from different manufacturers.

At first, software which was to use this accessory hardware was required to be specifically designed to support it. In the time of MS-DOS, game programmers typically had to write custom control software for each type of sound card or video card that might be installed in the user's computer. The need to provide custom support for so many devices consumed a considerable amount of time for software development.

Eventually hardware abstraction layers (HAL) such as DirectX were developed which separate application software from the underlying hardware. The application software does not need to know anything about the hardware on which it was to be used. Instead it discovers the capabilities of the hardware through the standardized abstraction layer, and then use abstracted commands to control the hardware. It is up to the HAL to be able to translate these commands into the specific format required for each device, using device drivers typically provided by the hardware manufacturer.

As computing power has continued to increase, there is sufficient processing capacity available for entire hardware devices to be simulated in software. This has brought about the development of the hypervisor and device virtualization and emulation, allowing software written for one specific type of hardware to be reused on completely different hardware, or for seemingly independent operating systems to be made to share a single device.


...
Wikipedia

...