Question:
what is low level language in operating system?
olanrewaju
2010-07-22 23:56:45 UTC
what is low level language in operating system?
Four answers:
M. Karthik
2010-07-23 00:02:46 UTC
In computer science, a low-level programming language is a programming language that provides little or no abstraction from a computer's instruction set architecture. The word "low" refers to the small or nonexistent amount of abstraction between the language and machine language; because of this, low-level languages are sometimes described as being "close to the hardware."



A low-level language does not need a compiler or interpreter to run; the processor for which the language was written is able to run the code without using either of these.



By comparison, a high-level programming language isolates the execution semantics of a computer architecture from the specification of the program, making the process of developing a program simpler and more understandable.



Low-level programming languages are sometimes divided into two categories: first generation, and second generation.
darrenforster99
2010-07-23 07:39:29 UTC
A low level language is assembly language.



This normally uses the cpu interrupts to get the computer to do what you want.



It is reasonably hard to understand and very easy to make mistakes as you have to remember to do everything with it such as push the registers onto the stack and pop them off afterwards. But it is also super fast way of executing a program, and also allows you access to a lot of places inside the computer that higher level languages stop you from accessing.



The program runs a lot faster in assembly mainly because it is raw code, and there is no interpreter like on C++ that adds is own extra things to the code.



One example of x86 assembly is:



PUSH AX

MOV AH,$0x02

INT $0x17

POP AX



Please note don't try and run this as it could do absolutely anything to the machine or nothing. It should ask the printer for it's current status but this was many years ago based on parallel port printers, now it could do absolutely anything.



It firstly pushes AX register onto the stack to keep it's existing data safe, it then loads ah (the higher end of ax with 0x02, then it calls interrupt 17, which if ah is loaded with 02 it tells the cpu to go and get the printer status, afterwards it then pops the ax register off the stack returning ax to it's original state.



The higher the language the more easier it is to read and understand by the end user.



assembly is the lowest, going up to compiler languages like C++/Pascal, and then BASIC is probably one of the most highest languages. Of course each time you take a step up the language gets easier but the program gets slower, as each level all add extra bits that make the program less and less optimised. Most life saving equipment, such as heart monitors have their software wrote in assembly for the reason they need to be ultra fast to save the persons life.
TestTubeBaby
2010-07-23 07:04:39 UTC
A low level language uses machine codes that are run through an assembler. Thus, they are often called assembly languages. High level languages are the ones we all hear and know about, such as Java, C, C++, C#, Perl, Python, and on and on. They are called low level languages because they are crude code. More developed languages are more like instructions, much simpler to understand and able to be used by a programmer.
Sushila B
2010-07-23 07:10:02 UTC
Computer is an electronic device and operates on electronic signals only. for the design simplicity and make debugging easy the circuits of computer are made to understand only two states of power , they are power on or power off. generally power on is denoted by 1 and off is by 0. The use of these two symbols is binary language(MAchine Language). But programming and debugging this language is bit difficult so other language (Assembly Language) with some mnemonics is used to program the computer.

These languages are know as low level language.

Just in a way i can say OK for All Correct, e.g. for For Example and so on.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...