Quantcast
Channel: Would an executable need an OS kernel to run? - Super User
Browsing latest articles
Browse All 12 View Live

Answer by cHao for Would an executable need an OS kernel to run?

In typical desktop OSes, the kernel itself is an executable. (Windows has ntoskrnl.exe; Linux has vmlinux, etc.) If you needed a kernel in order for an executable to run, then those OSes could not...

View Article



Answer by Thorbjørn Ravn Andersen for Would an executable need an OS kernel...

In the good old days your program was responsible for doing everything that needed to be done during the execution of your program, either by you doing it yourself or by adding library code others...

View Article

Answer by Walter Mitty for Would an executable need an OS kernel to run?

The BIOS that runs in your computer on power up is executable code stored in ROM. It consists of machine instructions plus data. There is a compiler (or assembler) that assembles this BIOS from source...

View Article

Answer by Artelius for Would an executable need an OS kernel to run?

I think many answers misunderstand the question, which boils down to this:A compiler outputs machine code. Is this machine code executed directly by a CPU, or is it "interpreted" by the...

View Article

Answer by Gábor for Would an executable need an OS kernel to run?

While I don't want to imply that the other answers are not right on their own, they provide far too many details that, I'm afraid, are still very obscure to you.The basic answer is that the code will...

View Article


Answer by sawdust for Would an executable need an OS kernel to run?

As someone who has written programs that execute without an OS, I offer a definitive answer.Would an executable need an OS kernel to run?That depends on how that program was written and built.You could...

View Article

Answer by dgnuff for Would an executable need an OS kernel to run?

TL;DR No.Arduino development comes to mind as a current environment where there's no OS. Trust me, on one of these babies you don't have the space for an operating system.Likewise, games for the Sega...

View Article

Answer by LawrenceC for Would an executable need an OS kernel to run?

So when we compile a simple source code, say with just a printf() function, and the compilation produces the executable machine code, will each instruction in this machine code be directly be executed...

View Article


Answer by Jamie Hanrahan for Would an executable need an OS kernel to run?

It depends on the environment. In many older (and simpler!) computers, such as the IBM 1401, the answer would be "no". Your compiler and linker emitted a standalone "binary" that ran without any...

View Article


Answer by Alex for Would an executable need an OS kernel to run?

When you compile your code, you create so-called "object" code that (in most cases) depends on system libraries (printf for example), then your code is wrapped by linker that will add kind of program...

View Article

Answer by Mokubai for Would an executable need an OS kernel to run?

The kernel is "just" more code. It's just that that code is a layer that lives between the lowest parts of your system and the actual hardware.All of it runs directly on the CPU, you just transition up...

View Article

Would an executable need an OS kernel to run?

I know that when the source code, in say C++, is compiled, the output from the compiler is the machine code (executable) which I thought were instructions to the CPU directly. Recently I was reading up...

View Article
Browsing latest articles
Browse All 12 View Live




Latest Images