什么是操作系统(相对于嵌入式系统)?
我见过操作系统被描述为“控制硬件的软件”。但我不明白它到底是什么。
例如,如果我们正在为计算器编写代码,如果我们编写代码来实现LCD和KEYPAD之间的接口,那么该代码不被视为操作系统,是吗?
“操作系统”到底是什么意思?
I have seen Operating Systems described as "the software that controls the hardware". I don't understand what it really is however.
For example, if we are writing code for a calculator, if we write the code to implement the interface between the LCD and KEYPAD, that code is not considered an operating system is it?
what really does "Operating System" mean?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Jack,有关操作系统的维基百科页面提供了很好的概述。简单地说,当您想要在单个硬件(在您的例子中是 ARM 芯片)上运行多个软件时,需要使用某些东西来控制对硬件的访问。操作系统将调度任务并分配硬件,以允许多个不同的软件和平共存。如果没有这种控制,就无法同时运行多个软件。您的计算器示例不需要操作系统,因为它是完成一项工作的一段代码。
对于 ARM 设备的编译器,我建议查看 GCC(我相信它可以交叉编译到 ARM)或获取开发套件,它可能会附带一套工具,让您可以在其上进行开发。
恐怕我无法帮助您选择哪个版本的 ARM 芯片,因为我对它们的经验有点有限。如果硬件价格是一个问题,我相信 ARM 7 硬件会更便宜,但它总是值得比较的。
希望这有帮助。
Jack, the wikipedia page on operating systems gives a pretty good overview to start with. To put it pretty simply, when you want to run multiple pieces of software on a single piece of hardware (in your case, the ARM chip) then something needs to control the access to the hardware. The operating system will schedule tasks and allocate hardware to allow the multiple different bits of software to co-exist peacfully. Without this control, there is no way to run multiple pieces of software at once. Your calculator example would not require an operating system, as it is a single piece of code to do a single job.
For compilers for the ARM devices, I would suggest looking at either GCC (which I believe can cross compile to ARM) or getting a development kit, which will likely come with a suite of tools to allow you to develop on it.
I'm afraid I can't help you on which version of ARM chips to choose though, as my experience with them is a little limited. If price of the hardware is an issue though, I believe the ARM 7 hardware will be cheaper, but it is always worth comparing.
Hope this helps.