OS interface?
Can anyone explain the mechanics of how an OS interfaces with the hardware circuits in a PC or Mac? What exactly is the mechanism?
The OS translates code into Machine, assembly, binary etc but how does that actually tell the chip set which pins to fire, which to close, etc? Or which circuits on the board(s) to open, close, etc? Especially considering the OS exists IN THE HARDWARE once the ISO is loaded??? |
Re: OS interface?
Quote:
Machine communication - binary (0's and 1's) Circuit communication - voltage High voltage - 1 Low voltage - 0 Sure you can find detailed explanations on the web |
Re: OS interface?
Quote:
|
Re: OS interface?
When coding in assembly, it still has to be compiled down to.. binary?
How does the compiler know how to translate it down to specific circuit-flipping instructions? Where is that translation located? In the source code of the compiler? Or does the compiler just forward everything to the OS which does the translating? And how does the OS actually communicate with the CPU? Must be something in the source code of the OS that tells the CPU what to do? Since there are various OS's, and they can all run on the same chipset (assuming PC), it would seem to indicate that there is a universal operating language used by all the operating systems (Linux, Windows, etc) that can run on the same CPUs. I would assume this is machine code, assembly, binary...? Anyone know what the actual reason Linux and Windows will not run on a Mac, or why Mac O/s will not run on a PC? I mean, binary is binary, right? So the same codes generate different 'calls' depending on the CPU? Just trying to understand. Information on the net about THIS stuff is incredibly scanty, for some reason. |
Re: OS interface?
I mean, who programs the CPU to even be able to recognise the various operating systems' commands?
Anyone here know how CPUs are manufactured? |
Re: OS interface?
Quote:
Quote:
Quote:
Quote:
Quote:
|
Re: OS interface?
Actually, you want to delve into the MSFN Forums if you wish more detailed information. It's a software forum dedicated to Microsoft software, but not an official one. I'm a long time member there, though it's been a while since I visited.
|
Re: OS interface?
Quote:
I noticed something last night. My son and I were working on machine coding. He codes, I was providing theory, lol. Anyway, I suggested an experiment. We had discovered in two days that coding in assembly is still no different than coding in C, for example, since both have to translate to machine code. So I suggested he make a simple code in C, built as a .exe, one for Windows and one ("file") for Debian, same program. We compared the two and identified what commands were identical, and what were different. We also dumped it to machine reader to see the machine code it generates. Very interesting results. Conclusion? All compilers translate to machine code. Problem? Machine code still has to be translated to binary, so what performs that function? Related: do chips process an 8 bit binary code one bit at a time, sequentially? How does that work? Just rummaging around in my brain. Side note: an OS is built with a compiler. What runs the compiler? Is this an infinite regression loop? Also: guy built a CPU in Minecraft, fascinating how it was done. Board took up the whole world-map, though lol. |
Re: OS interface?
I have been dealing with computer technology since 1979.
I am a computer systems engineer, who actually helped to build the Army tactical Internet. Yet I am still befuddled by it all. :dunno |
Re: OS interface?
Quote:
|
All times are GMT -6. The time now is 02:50 AM. |
Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.