T
T
The-TS2020-02-06 14:52:24
linux
The-TS, 2020-02-06 14:52:24

Is it possible to write a Linux kernel system purely in C++ and Python?

Is it possible to write a Linux kernel system purely in C++ and Python?
If possible, how?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alexey Cheremisin, 2020-02-06
@leahch

Alas, there is no way to do without a couple of hundred lines in assembler (these are special instructions that are usually not compiled by compilers, such as context switching, working with mmu and cache, access to special registers, stack switching, etc.). Moreover, these lines in assembler will need to be written for each architecture - the instructions are different everywhere!
Well, the question is always - why?

S
SOTVM, 2020-02-06
@sotvm

Assembly is for the weak?
even there commands in HEX
5e3c0e8a65a07721300154.jpeg

C
CityCat4, 2020-02-06
@CityCat4

Everything is allowed. What for?

K
Karpion, 2020-02-07
@Karpion

What does "on the Linux kernel" mean? Why is this all?
In Python, most likely, it is impossible: usually these are scripts that work in the context of the interpreter. And for convenient programming, you also need numerous libraries of different modules.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question