Code Execution

In Normal Programming Languages like C, C++, COBOL etc.

  • In these programming languages, language compiler will convert the source code and  generates the native code.



In general at the time of compilation language compiler will consider  two factors
    1.     CPU/Processor Architecture
    2.     Operating system Architecture 

  •  Native code will be generated in such a way that it should be understood  by the current processor and the Operating System in which the compiled and run

What is Platform?
  •  Platform is a combination of CPU Architecture and Operating System Architecture
What is Platform Dependency ?
  • Code that has been generated by the language compiler compilation doesn’t run/execute on a different Processor and in different Operating System than which it has been compiled, this nature is known as platform dependency
What is Platform Independency ?
  •  If the code is generated by  language compiler (LC) compilation runs on any processor and in any Operating System than which it has been compiled then it is known as platform independent

No comments:

Post a Comment

Translate