Is it possible to boot a program in C language without OS?
I have a similar question in the English version, but it's a different person.
c The language specification assumes that the cLanguage Standards refer to "Free Standing Environment".In that sense, the OS starts.=c.
In the development of so-called "embedded" or home appliances, the microcomputer compiler supports the microcomputer's exclusive functionality, allowing c.I guarantee you as an experienced person.
If the BIOS/UEFI reset on a so-called Windows computer is done immediately after the BIOS/UEFI reset, perhaps 99% of the questions can be written in c.As new CPUs are being developed and new features are increasing, you may need to use an assembler for the remaining 1% as the initialization process requires a question tagged If the question is to run programs that you plan to run in a normal "host environment" like the printf()
function without the OS, the modern answer is "impossible" or "meaningless." Well, if you include the OS, it's too expensive for the general public to try.
Well, there are people in the world who want to make their own operating system for personal computers (not for one-chip microcomputers), so if you're interested, search for it.
This is normal for embedded CPUs.
If you want to do it on your PC, you can do it by writing the initialization part yourself
Well, first of all, I need to think about how to deploy that code to memory.
Embedded software often intentionally stops clearing WDT and causes CPU reset.
© 2024 OneMinuteCode. All rights reserved.