by emilfihlman · 8y ago · 0 comments
It is not. A program that runs without an OS just doesn't need the OS provided services but instead manages everything itself.
A perfectly valid program might be:
#include <avr/io.h>
int main(void)
{
DDRB=255;
while(1)
{
PORTB++;
}
}just a simple google would help: the low-level software that supports a computer's basic functions, such as scheduling tasks and controlling peripherals.
this poor author of the post. >.> and then to think critisism gets a downvote :'D.. must be some angry kids mob who found where on memory mbr is put from some youtube1337hack0r..
The accepted answer was correct: "You place your binary code to a place where processor looks for after rebooting " That was a good anwer to the question. the rest is just filler nonsense.
There has to be some distinction between the subset of all possible programs that qualify as "operating systems", otherwise why have two terms?
On my dad's old Apple ][+ 48k, I used the same REPL to get the CATALOG of what was on the floppy disk and to program in BASIC. What's the line between OS and a REPL?
A program, by definition, is a running system which executes specific instruction sets, whether this is from a low-level, no-OS setup, such as an NES, or a MacOS program which makes extensive use of Core Image, Core Animation, Core Audio, et cetera.
These are both programs. But only one of them actually runs in an OS.
What is art?
https://en.wikipedia.org/wiki/Operating_system
Handling resources isn't the definition of an OS.
Also asking "what is art?" is not the same as asking "what is an operating system?"
Art covers just about all human activity, the definition is extremely wide. I wouldn't say an OS has a definition that wide.
I learned to program on an SDS Sigma 5. [1] The machine booted by reading the first card in the reader and executing the instructions punched on that card.
The card could be a boot loader to start the BTM (Batch Timesharing Monitor) operating system from disk. Or the card could be a little program all of its own.
A particularly useful one-card program was a card deck printer. You would put it at the front of the deck and boot the machine. This card had a simple loop to read the next card into memory, then print that line on the printer, and repeat until the card reader was empty. (One of my first optimization adventures was modifying the code to be double-buffered: read the next card into memory while the previous card is printing. Twice as fast!)
That card certainly handled resources, but no one called it an OS. It didn't manage and provide services to other programs, it was just a one card program.
Another popular one card program was the bird chirp card. It pulsed the front panel speaker to make it sound like birds were chirping. We didn't think of that as an operating system either. :-)
Well, it certainly is part of the definition of a useful OS. A car doesn't have to be able to turn right. It is still a car, just not a useful one.
I think it boils down to the concept that an OS should serve as a middle layer of abstraction between a program and hardware, and provide some sort of meaningful way to make that stream of communication more simple and useable for humans.