问题描述
我GOOGLE了它和地方我读....
I googled about it and somewhere I read ....
的 是的,可以。这是发生在嵌入式系统的情况下的
Yes, you can. That is happening in the case of embedded systems
我觉得没什么,这是不可能的。任何平台必须有一个操作系统。否则,你的程序本身必须是一个操作系统。
无论软或硬连线。如果没有操作系统的组件是行不通的。
I think NO, it's not possible. Any platform must have an operating system. Or else, your program must itself be an OS.Either soft or hard-wired. Without an operating system your component wouldn't work.
我是正确的或任何人可以解释我的答案吗? (我没有ABT嵌入式系统的任何想法...)
Am I right or can anybody explain me the answer? (I dont have any idea abt embedded systems...)
推荐答案
当然可以。所有A(典型值)的CPU需要的是力量和访问内存,那么它会执行其硬件codeD引导顺序。
Of course you can. All a (typical) CPU needs is power and access to a memory, then it will execute its hard-coded boot sequence.
通常,这将涉及到阅读一些pre定义的地址,除preting内容那里的指令,并开始运行。
Typically this will involve reading some pre-defined address, interpreting the contents there as instructions, and starting to run them.
这些指令当然可以来自一个C程序,但在这个水平是比较常见的汇编写的非常初期的阶段(称为引导)。
These instructions could of course come from a C program, although at this level it's more common to write the very early stages (called bootstrapping) in assembly.
这当然并不意味着,如果我硬是看了你的问题的标题,即的C程序的运行这种方式。如果程序假定有一个操作系统,但没有,它不会工作。这应该是pretty明显。
This of course doesn't mean, if I were to read your question title literally, that any C program be run this way. If the program assumes there is an OS, but there isn't, it won't work. This should be pretty obvious.
这篇关于我可以执行没有任何操作系统平台提出前卫的C吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!