S
S
SKEPTIC2019-08-09 23:09:30
Operating Systems
SKEPTIC, 2019-08-09 23:09:30

YaPs in your OC?

How can I make programming languages ​​work on my operating system?
Suppose I have my own OC written in Assembler. I do not want to implement all the features in assembler, but I want to, let's say in C or C ++ or even in Python.
How to make it possible to write programs in programming languages ​​for my OC?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
Saboteur, 2019-08-10
@saboteur_kiev

Suppose I have my own OC written in Assembler.

There is no need to make such assumptions.
Assembler is no different from other programming languages ​​in this respect. If your OS can write in assembler, how did you do it? Do not know?
You do not have an OS written in assembler, otherwise there would be no such questions.

M
McBernar, 2019-08-09
@McBernar

If you had your own OS, there would be no such questions.
You need a compiler that will translate the C syntax into machine code that your OS understands. There are specs, make an implementation on them.

A
Adamos, 2019-08-09
@Adamos

There is a processor, there is a set of its instructions, there is an OS running on it.
C++ programs, for example, are code that translates into commands on the target processor and calls to system functions of the target OS.
From here you can start to think about what your question is about.

A
Alexander, 2019-08-09
@NeiroNx

Well, you can implement a C compiler in assembler, for starters, and write Python on it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question