什么是OS'哈尔?

发布于 2025-01-28 14:34:19 字数 172 浏览 2 评论 0原文

硬件抽象层(HAL)是计算系统中最低级别的软件。因此,它是否以汇编语言(特定于特定处理器为特定)实现的功能是由安装“ Over”它的某些例程调用的?如果是这样,那么谁是提供它的人?硬件制造商?或者,无论它不是与操作系统分开,OS开发人员如何知道全世界所有处理器的所有特殊性,如果OS开发人员必须为每个OS编写HAL,其目的是什么?

The hardware abstraction layer (HAL) is (AFAIK) the lowest level software within a computing system. Thus, is it a set of functions implemented in assembly language (specific for a particular processor) which are called by some routines from the OS installed "over" it? If it is so, then, who is the one who provides it? The hardware manufacturer? Or, whether it is not separate from the OS, then, how does the OS developer know all the particularities of all the processors from the entire world and what is its purpose if the OS developer has to write a HAL for every OS?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

初相遇 2025-02-04 14:34:19

我相信,将HAL大致认为是您的CPU的I/O驱动程序是安全的。在任何合理的情况下,您都应该期望I/O设备的制造商为您提供其驱动程序。同样,CPU及其HAL。

您问:

或,无论它不是与操作系统分开,OS开发人员如何知道全世界所有处理器的所有特殊性,以及如果OS开发人员必须为每个OS编写HAL,其目的是什么?

这实际上就是HAL打算解决的问题。有一次,大约期望操作系统处理所有内容。但是,随着硬件变得更加复杂,引入了额外的抽象层。

I believe it's safe to think of the HAL roughly as an I/O driver for your CPU. In any reasonable circumstance, you should expect the manufacturer of an I/O device to provide you with its driver. The same applies to a CPU and its HAL.

You asked:

Or, whether it is not separate from the OS, then, how does the OS developer know all the particularities of all the processors from the entire world and what is its purpose if the OS developer has to write a HAL for every OS?

This is actually what the HAL is intended to address. At one point, the OS was roughly expected to handle everything. But, as hardware became more complex, an additional abstraction layer was introduced.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文