- 3

Why low level programming language can't run in different devices but high level programming language run in any devices.

12th Apr 2022, 3:18 PM
Arman saha
Arman saha - avatar
3 Respostas
+ 8
High level language compilers are not "written" in low level languages. Rather, the high level langauge is converted to a low level language i.e. assembly language by the compiler in stages. One of the stages right before assembly code generation is called intermediate code generation which is responsible for maintaining portability of the compiler so that it can run on any machine irrespective of hardware. This is the reason why high level languages give you the abstraction to be able to run on any device while the low level language depends heavily on the hardware of the machine it runs on.
12th Apr 2022, 3:51 PM
Abhishek Tandon
Abhishek Tandon - avatar
+ 3
Hi, Arman saha ! Low level programming languages are pretty close to the hardware, and therefore non-portable. That is not the case with high level languages like Java or Python, who need a compiler or a interpreter to work. Low level code can instead run directly to the peocessor, and so became more quick and memory efficient.
12th Apr 2022, 3:28 PM
Per Bratthammar
Per Bratthammar - avatar
+ 1
But, high level programming language is made with low level programming language. Then how these are different from each other?
12th Apr 2022, 3:34 PM
Arman saha
Arman saha - avatar