Embeded device as much as possible
But is an embedded system ???
I would rather classify a three-leg processor into a group of specialized "black boxes" functors.
The processor sees something and does something based on it, maybe even something very complicated.
But rather, we will not run the text editor on the three-legged boat (on Palma or Pocket and yes), and projects such as Tiny Web Server are illustrative

It can be done, let's not demand more from the uprising, because it will get warm :)
"Although who really knows what the operating system" must "do

"
- M $ for sure -
In total, the operating system is a handful of logically defined procedures for accessing the resources of the processor and the environment, systematized, which should be used by the user's program

.
It's such a simple attempt to define what a given microprocessor set can do
before the user even tries to "bring out" a new life from it, a team of information on how to get along with the device without knowing its electronic structure.
Everything that goes beyond the operating system (no matter how truncated) is a breach and sometimes salvation (crazy acceleration), and sometimes just a hole and a fatal error for the stability of the operating system as a whole.
Example: People loved to play with the DOS time divider, but hardly anyone remembered to run a basic timer handler periodically - effect of the strange behavior of the system clock before and after the program exits.
Specialized software does not assume the need for the existence of an operating system because it has to implement an algorithm that is specifically tailored to the procedures being carried out, the price - the need to develop an algorithm with each significant change in the operating principles of the device.
In the operating system, it comes down to changing the parameters of the algorithm rather than completely rebuilding it, unfortunately, certain operations will not be performed by the system because they were not designed, and supplementing the missing functionality requires remarkable knowledge of the dependencies in the existing system.