Search This Blog


Showing posts with label overview. Show all posts
Showing posts with label overview. Show all posts

Thursday, September 12, 2019

Application of C

Its main application are:-
  1. It is mainly used to develop system software such as operating system,compiler,interpreter,linker,loader,etc.
  2. It is used to develop utility software as database driver,network drivers,etc.
  3. It is used to  develop game application.
  4. It is also used to develop application software , such as school management system,medicie automation system etc.

Wednesday, September 11, 2019

Compiler and Interpreter

Compiler

  1. Scans the entire program and translates it as a whole into machine language code.
  2. It takes large amount of time to analyze the source code but the overall execution time is comparatively faster.
  3. Generates intermediate object code which further requires linking, hence requires more memory.
  4. It generates the error message only after scanning the program. Hence debugging is comparatively hard.
  5. Programming language like C, C++ are compilers.

Interpreter

  1. Translates program one statement at a time.
  2. It takes less amount of time to analyze the source code but the overall execution time is slower.
  3. No intermediate object code is generated , hence are memory efficient.
  4. Continues translating the program until the first error is met, in which case it stops. Hence debugging is easy.
  5. Programming language like Python, Ruby are interpreters.
                                      

High Level Language


A high level language which abstract the information of hardware. It is based on our real life language but in programming language we have to convert High level language into Assembly Language or Machine Level Language with the help of Compiler or Interpreter. 


 "Assembly language:-An assembly language is a low-level programming language for microprocessors and other programmable devices. "

 "Machine level language:-Programming language that can be directly understood and obeyed by a machine (computer) without conversion (translation)."