Docsity

Understanding Computer Languages and Translators, Slides of Operating Systems

Partial preview of the text

Download Understanding Computer Languages and Translators and more Slides Operating Systems in PDF only on Docsity!

Computer

Languages

& Language

Translators

Computer Language

  • (^) Computer language is a code or syntax for writing programs or specific applications. A computer language helps the user to tell the computer what to do and how to do it.

Low-level programming language

  • (^) A low-level programming language is close in relation to a computer’s instruction set and directly interacts with its hardware components to convert the orders into action.
  • (^) Machine Language
  • (^) Assembly Language

Assembly Language

  • (^) Assembly language is simply a low-level programming language to write instructions for microprocessors and various programmable devices. It is often referred to as a second-generation language of computer. Assembly language is common for writing scripts for operating system and desktop applications.
  • (^) Assembly language is easy to understand in comparison to machine language. The compiler takes less time to translate the code, while the efficiency of the code’s execution is greater. However, a potential disadvantage is that the code cannot be reused for all projects and is difficult to understand for beginners.

Example

  • (^) Machine Language Add 10 & 5= 0001 1010 0101
  • (^) Assemble Language It uses mnemonics. Words like Add, Sub….. Add 10 & 5= Add 1010 0101

Procedural Language

  • (^) A procedural language is a third-generation language easily created with simple procedures. These procedures are instructions in a sequence with a unique name. Hence, the execution of these instructions happens with a name or title assigned to that instruction.
  • (^) Here are some examples of popular procedural languages:

Examples of procedural languages

  • (^) C Language: C is widely useful for developers for developing system software , like operating systems and device drivers. It is known for its efficiency in managing hardware resources.
  • (^) Fortran: Fortran is commonly useful as a programming language for scientific computing and numerical analysis. It has found extensive applications in fields such as physics, engineering, and astronomy, and it remains relevant today.

Examples of procedural

languages(cont.)

  • (^) COBOL: COBOL (Common Business Oriented Language) is a procedural language initially developed for business applications. It is still helpful today for developing banking, insurance , and government applications.

Functional Language

  • (^) Functional language is a type of high-level language that revolves around mathematical functions as their fundamental concept. Functional languages give functions equal status by assigning them to variables, using them as arguments in other functions, and returning them as values from functions. This means that functions can be useful in flexible and powerful ways, making it easier to solve problems and create programs.
  • They are common for the development of applications that involve extensive data manipulation, such as artificial intelligence and data analysis. Additionally, functional languages are best for web development and game development.

Examples of functional

languages

  • (^) Erlang: Erlang is a functional language specifically for building concurrent and distributed systems. It is extensively useful in the telecommunications industry for creating messaging systems and other real-time applications.
  • (^) F#: F# is a functional language based on the .NET framework. It is notable in the development of applications for various domains, including web development, game development, and artificial intelligence.

Object-Oriented Programming

Language

  • (^) Object-oriented programming languages have become the predominant approach in developing new software. The development process in these languages revolves around creating and interacting with objects , which consist of pieces of code (modules) and data structures.

Scripting Language

  • (^) Scripting languages are high-level languages to be user-friendly and easy to learn for automating repetitive tasks and creating dynamic web pages. Developers prefer interpreted scripting languages because they do not require compilation before execution, enabling quick prototyping and testing.

Examples of scripting languages

  • (^) JavaScript: JavaScript is a common scripting language for creating dynamic and interactive web pages. It is alongside HTML and CSS to build complex web applications. JavaScript is also utilized in server-side development through platforms like Node.js. It is well-known for its versatility and capability to run on various devices.
  • (^) Python: Python is a scripting language for various applications, such as web development, data analysis, and artificial intelligence. It is perfect due to its user-friendly nature and capacity to handle large datasets. Python has wide usage in scientific computing and machine learning domains.