DEV Community

Cover image for Platform Dependent VS Platform Independent
Roshan Shambharkar
Roshan Shambharkar

Posted on

Platform Dependent VS Platform Independent

Platfrom
It is a combination of certain hardware and software,
components in which apllication will run.

Software's are two types
1) Platform Dependent software's
2) Platform Independent Software's

1) Platform Dependent Software
The software which is can run on only one type of platforms are called as platform Dependent software
For e.g :- Software made up of C and C++

Now Quetions is Why software made up of c++ and c language

1) When a programmer tries to define software using c++ and c language and saves the source code using .c extension

2) and when he tries to complie this .c file using a c compiler the c complier converts .c file into .exe file
3) the .exe
file contain native machine level code which can run on only the
native type of platform

4) The .exe
file contains native code which one also called executable code

5) This native code connot be executed in different platforms such as mac, linux, solaris etc

6)Hence software made of c and c++ language are platform Dependent

Image description

Platform Independent software

The software which can run on any type of platform are called as platform Independent software For e.g:- software made of java, python, .net

1) When Programmer design a software and compiles it using java compiler the java complier converts the java file into .class files this .class files contains byte code

2) The .class code present in class file are also non executable codes and they are called intermediate code

3) This byte code is neither understand to programmer nor the computer

4)To run the byte code in any type of platform we need to install a software know as JVM

5)JVM is used to convert the byte code into machine understandable language

6)Hence with the help of byte code and JVM we can run java software in any type of platform

7)This is the way how java software achive software independency's

Image description

Top comments (0)