Apostolic Friends Forum
Tab Menu 1
Go Back   Apostolic Friends Forum > The Foyer > The Information Station > Tech Talk: with Bit & Byte
Facebook

Notices

Tech Talk: with Bit & Byte For all those that speak Geek & Greek among us! Or for those technically challenged who don't!


Reply
 
Thread Tools Display Modes
  #1  
Old 03-25-2017, 01:54 AM
Esaias's Avatar
Esaias Esaias is offline
Unvaxxed Pureblood


 
Join Date: Jul 2012
Location: Zion aka TEXAS
Posts: 26,684
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???
__________________
Visit the Apostolic House Church YouTube Channel!


Biblical Worship - free pdf http://www.pdf-archive.com/2016/02/21/biblicalworship4/

Conditional immortality proven - https://ia800502.us.archive.org/3/it...surrection.pdf

Reply With Quote
  #2  
Old 03-25-2017, 02:13 AM
TGBTG TGBTG is offline
Jesus is the only Lord God


 
Join Date: Aug 2010
Posts: 2,565
Re: OS interface?

Quote:
Originally Posted by Esaias View Post
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???
At the fundamental level, it's all based on voltage.

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
__________________
...Testifying both to the Jews, and also to the Greeks, repentance toward God, and faith toward our Lord Jesus Christ...(Acts 20:21)
Reply With Quote
  #3  
Old 03-25-2017, 09:04 AM
Jito463 Jito463 is offline
J.esus i.s t.he o.ne God (463)


 
Join Date: May 2013
Posts: 2,806
Re: OS interface?

Quote:
Originally Posted by Esaias View Post
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???
To put it simply, there is a chip on the motherboard called the BIOS (Basic Input/Output System). On startup, it detects all the hardware and makes sure everything is reporting back as working correctly. Once it's done with the tests, it hands the controls off to whatever OS is installed (Linux, Mac, Win, BSD, etc). From there, the OS handles all the communication with the components through a simple 1 or 0 signal as TGBTG already mentioned. The higher level programming languages such as C++, are for the convenience of the programmers. The OS converts that code into simple binary language to control the hardware.
__________________
Quote:
Originally Posted by Originalist View Post
Sometimes hidden dangers spring on us suddenly. Those are out of our control. But when one can see the danger, and then refuses to arrest , all in the name of "God is in control", they are forfeiting God given, preventive opportunities.
Reply With Quote
  #4  
Old 03-29-2017, 12:54 AM
Esaias's Avatar
Esaias Esaias is offline
Unvaxxed Pureblood


 
Join Date: Jul 2012
Location: Zion aka TEXAS
Posts: 26,684
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.
__________________
Visit the Apostolic House Church YouTube Channel!


Biblical Worship - free pdf http://www.pdf-archive.com/2016/02/21/biblicalworship4/

Conditional immortality proven - https://ia800502.us.archive.org/3/it...surrection.pdf

Reply With Quote
  #5  
Old 03-29-2017, 12:56 AM
Esaias's Avatar
Esaias Esaias is offline
Unvaxxed Pureblood


 
Join Date: Jul 2012
Location: Zion aka TEXAS
Posts: 26,684
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?
__________________
Visit the Apostolic House Church YouTube Channel!


Biblical Worship - free pdf http://www.pdf-archive.com/2016/02/21/biblicalworship4/

Conditional immortality proven - https://ia800502.us.archive.org/3/it...surrection.pdf

Reply With Quote
  #6  
Old 03-29-2017, 06:42 PM
Jito463 Jito463 is offline
J.esus i.s t.he o.ne God (463)


 
Join Date: May 2013
Posts: 2,806
Re: OS interface?

Quote:
Originally Posted by Esaias View Post
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?
I'm not a programmer, so I couldn't give you any specifics. I can generalize it for you, but not much more than that.

Quote:
Originally Posted by Esaias View Post
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...?
Again, I don't have any specific information for you, except to say that it's more that the details of it is available for programmers who wish to delve into the OS side of things, and there's specific ways to initiate the handoff from the BIOS to the OS.

Quote:
Originally Posted by Esaias View Post
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?
That's by design of Apple. Actually, Linux and Windows both *can* run on Apples (at least, any Intel-based ones), but they have to use an emulation layer called Boot Camp. As for why MacOS won't run on any computer that's not an Apple, it's again by design. However, there are people who have created what's known as "Hackintoshes", which are machines similar in spec to the Apple ones but not officially made by Apple. The OS is then modified to allow installation.

Quote:
Originally Posted by Esaias View Post
Just trying to understand. Information on the net about THIS stuff is incredibly scanty, for some reason.
It's out there, but you really have to dig into it and know what you're searching for.

Quote:
Originally Posted by Esaias View Post
I mean, who programs the CPU to even be able to recognise the various operating systems' commands?

Anyone here know how CPUs are manufactured?
Technically, no one "programs" the CPU. It simply processes commands that are passed to it, one only needs to know how to pass those commands on.
__________________
Quote:
Originally Posted by Originalist View Post
Sometimes hidden dangers spring on us suddenly. Those are out of our control. But when one can see the danger, and then refuses to arrest , all in the name of "God is in control", they are forfeiting God given, preventive opportunities.
Reply With Quote
  #7  
Old 03-29-2017, 06:47 PM
Jito463 Jito463 is offline
J.esus i.s t.he o.ne God (463)


 
Join Date: May 2013
Posts: 2,806
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.
__________________
Quote:
Originally Posted by Originalist View Post
Sometimes hidden dangers spring on us suddenly. Those are out of our control. But when one can see the danger, and then refuses to arrest , all in the name of "God is in control", they are forfeiting God given, preventive opportunities.
Reply With Quote
  #8  
Old 03-30-2017, 04:44 PM
Esaias's Avatar
Esaias Esaias is offline
Unvaxxed Pureblood


 
Join Date: Jul 2012
Location: Zion aka TEXAS
Posts: 26,684
Re: OS interface?

Quote:
Originally Posted by Jito463 View Post
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.
Thanks, I'll check it out.

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.
__________________
Visit the Apostolic House Church YouTube Channel!


Biblical Worship - free pdf http://www.pdf-archive.com/2016/02/21/biblicalworship4/

Conditional immortality proven - https://ia800502.us.archive.org/3/it...surrection.pdf

Reply With Quote
  #9  
Old 03-31-2017, 12:07 AM
FlamingZword's Avatar
FlamingZword FlamingZword is offline
Yeshua is God


 
Join Date: Aug 2011
Location: Los Angeles
Posts: 4,158
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.

Last edited by FlamingZword; 03-31-2017 at 12:12 AM.
Reply With Quote
  #10  
Old 04-02-2017, 12:57 AM
Esaias's Avatar
Esaias Esaias is offline
Unvaxxed Pureblood


 
Join Date: Jul 2012
Location: Zion aka TEXAS
Posts: 26,684
Re: OS interface?

Quote:
Originally Posted by FlamingZword View Post
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.
__________________
Visit the Apostolic House Church YouTube Channel!


Biblical Worship - free pdf http://www.pdf-archive.com/2016/02/21/biblicalworship4/

Conditional immortality proven - https://ia800502.us.archive.org/3/it...surrection.pdf

Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

 
User Infomation
Your Avatar

Latest Threads
- by jfrog
- by Salome
- by Amanah

Help Support AFF!

Advertisement




All times are GMT -6. The time now is 01:44 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.