Today topic is about "Why C/C++ is Platform Dependent or System Dependent" :
When we write a program then it is called as a Source code , then when we compile this program contained source code, we get x.obj that contains the machine language code. The entire program machine language instructions and these instructions are understandable by microprocessors.
There are several microprocessors developed by many companies, Every microprocessors can recognize a group of instructions called the Instruction Set of the microprocessor, So different microprocessor have different Instruction sets and can't understandable by one another .
If we generate x.exe file on a computer with Pentium processor, then that x.exe file contains machine language instructions understandable to Pentium only. If we try it another computer with another processor except Pentium processor, it cannot execute.
This condition is also applied on OS of computer because different OS stores Instructions in different form. For example, the instruction for addition of two values by Windows may be add a,b; whereas the same instruction may be stored by UNIX as; a add b, if we generate x.exe in X OS and Y processor then it execute by X OS and Y processor only.
I hope you like this , if you need to know more about this you can comment for the topic and please share this as much you can thank you for read this blog...🌝🌝🌝🌝
When we write a program then it is called as a Source code , then when we compile this program contained source code, we get x.obj that contains the machine language code. The entire program machine language instructions and these instructions are understandable by microprocessors.
There are several microprocessors developed by many companies, Every microprocessors can recognize a group of instructions called the Instruction Set of the microprocessor, So different microprocessor have different Instruction sets and can't understandable by one another .
If we generate x.exe file on a computer with Pentium processor, then that x.exe file contains machine language instructions understandable to Pentium only. If we try it another computer with another processor except Pentium processor, it cannot execute.
This condition is also applied on OS of computer because different OS stores Instructions in different form. For example, the instruction for addition of two values by Windows may be add a,b; whereas the same instruction may be stored by UNIX as; a add b, if we generate x.exe in X OS and Y processor then it execute by X OS and Y processor only.
I hope you like this , if you need to know more about this you can comment for the topic and please share this as much you can thank you for read this blog...🌝🌝🌝🌝
Would you please tell me why we use System.out.println
ReplyDelete