Is the operating system an abstraction?

How important is this if you compile, link, and load assembly language code or C code in DOS or in Windows? shouldn't be the same? after all, execution is performed by the microprocessor, and not the operating system. I am learning assembly language from an old MS-DOS book. Is this a failure? is not an assembler language and its O / S independent code execution? or in this respect any code written in other languages?

+3
source share
2 answers

is not an assembler language and its O / S independent code execution? or in this respect any code written in other languages?

Yes and no.

Yes. The machine language is OS independent. It doesn't matter if you yourself wrote, or the C compiler wrote this for you.

. . , - , OS API. .

+7

, "" , printf() Linux, Windows ( ), .
, , , , , , - (, , linux ..).
, , .

0

Source: https://habr.com/ru/post/1791006/


All Articles