Click here to Skip to main content
15,893,337 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Linux and Windows kernel- How do they know what cpu calls they are talking. Pin
Kornfeld Eliyahu Peter21-Mar-17 23:43
professionalKornfeld Eliyahu Peter21-Mar-17 23:43 
GeneralRe: Linux and Windows kernel- How do they know what cpu calls they are talking. Pin
RedEyedDog22-Mar-17 0:06
RedEyedDog22-Mar-17 0:06 
AnswerRe: Linux and Windows kernel- How do they know what cpu calls they are talking. Pin
W Balboos, GHB22-Mar-17 2:13
W Balboos, GHB22-Mar-17 2:13 
GeneralRe: Linux and Windows kernel- How do they know what cpu calls they are talking. Pin
Mark_Wallace21-Mar-17 23:46
Mark_Wallace21-Mar-17 23:46 
GeneralRe: Linux and Windows kernel- How do they know what cpu calls they are talking. Pin
RedEyedDog22-Mar-17 3:25
RedEyedDog22-Mar-17 3:25 
GeneralRe: Linux and Windows kernel- How do they know what cpu calls they are talking. [edited] Pin
Mark_Wallace22-Mar-17 3:29
Mark_Wallace22-Mar-17 3:29 
GeneralRe: Linux and Windows kernel- How do they know what cpu calls they are talking. Pin
RedEyedDog22-Mar-17 3:56
RedEyedDog22-Mar-17 3:56 
GeneralRe: Linux and Windows kernel- How do they know what cpu calls they are talking. Pin
Plamen Dragiyski22-Mar-17 0:52
professionalPlamen Dragiyski22-Mar-17 0:52 
Shortest answer: go to osdev.org and start reading. This was great place that helped me start developing several level-0 applications (not full OS, though).

Short answer: For most of the things, there is no way to know at Runtime. For OS level this notation *-amd64, *-x86, *-arm64 means a little more than "compiled using that option". There are different system registers and other differences described in a ~1000+ pages manuals for each processor. Due to pre-processor you can make a slightly different version for each CPU architecture at compile time.

Honest answer: Take a look at the code of working linux/windows kernel. You will notice that programmers creating operating systems find that part a little fuzzy, too. Just accept it and live with it.
GeneralRe: Linux and Windows kernel- How do they know what cpu calls they are talking. Pin
Munchies_Matt22-Mar-17 21:56
Munchies_Matt22-Mar-17 21:56 
GeneralGet ready to go back to paper books... Pin
OriginalGriff21-Mar-17 21:01
mveOriginalGriff21-Mar-17 21:01 
GeneralRe: Get ready to go back to paper books... Pin
Daniel Pfeffer21-Mar-17 21:53
professionalDaniel Pfeffer21-Mar-17 21:53 
GeneralRe: Get ready to go back to paper books... Pin
Mycroft Holmes21-Mar-17 23:06
professionalMycroft Holmes21-Mar-17 23:06 
GeneralRe: Get ready to go back to paper books... Pin
Duncan Edwards Jones21-Mar-17 23:17
professionalDuncan Edwards Jones21-Mar-17 23:17 
GeneralRe: Get ready to go back to paper books... Pin
Kornfeld Eliyahu Peter21-Mar-17 23:20
professionalKornfeld Eliyahu Peter21-Mar-17 23:20 
GeneralRe: Get ready to go back to paper books... Pin
Nelek21-Mar-17 23:57
protectorNelek21-Mar-17 23:57 
GeneralRe: Get ready to go back to paper books... Pin
Kornfeld Eliyahu Peter22-Mar-17 0:01
professionalKornfeld Eliyahu Peter22-Mar-17 0:01 
GeneralRe: Get ready to go back to paper books... Pin
Nagy Vilmos21-Mar-17 23:23
professionalNagy Vilmos21-Mar-17 23:23 
GeneralRe: Get ready to go back to paper books... Pin
Nelek22-Mar-17 0:02
protectorNelek22-Mar-17 0:02 
GeneralRe: Get ready to go back to paper books... Pin
den2k8822-Mar-17 0:17
professionalden2k8822-Mar-17 0:17 
GeneralRe: Get ready to go back to paper books... Pin
Mark_Wallace22-Mar-17 0:11
Mark_Wallace22-Mar-17 0:11 
RantRe: Get ready to go back to paper books... Pin
Plamen Dragiyski22-Mar-17 0:58
professionalPlamen Dragiyski22-Mar-17 0:58 
GeneralRe: Get ready to go back to paper books... Pin
Richard Deeming22-Mar-17 2:35
mveRichard Deeming22-Mar-17 2:35 
GeneralThis can't end well... Pin
Daniel Pfeffer21-Mar-17 20:27
professionalDaniel Pfeffer21-Mar-17 20:27 
PraiseRe: This can't end well... Pin
Kornfeld Eliyahu Peter21-Mar-17 22:17
professionalKornfeld Eliyahu Peter21-Mar-17 22:17 
GeneralQA Manager Pin
Kevin Marois21-Mar-17 11:39
professionalKevin Marois21-Mar-17 11:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.