· Section one: Language Processors
1-The title of our research for this video is Language Prossers such as:
Compiler and Assempler.
2-We will explain the mechanism of action of each of them, what is the difference between them, and correct some misconceptions
3-let’s start with the definition -> language processor is a software program designed or used to perform tasks such as processing program code to machine code. Language processors are found in languages such as Fortran and COBOL. ) They are one of the first programming languages to be used) I’ll make a certain video to talk about them.
· Section two: Compiler
1-let’s start with the compiler: is converting the source code written by the programmer to a machine language to create an executable program.
2-as you see here it shows a code written on Java
3-the compiler will convert it to
4-machine language and as you see is composed of digital binary numbers and it’s read by the CPU, that’s will lead us to the definition of the Compiler.
5- a compiler is a computer program that translates computer
code is written in one programming language which is
(the source language)
into another language which is (an executable machine code that the CPU can read)
· Section three: Assembler
1- Then let’s talk about the assembler: Assembler basically converts the assembly code into the machine code
2- Here as you see is a sample of an assembly code that do something
3- The assembler
4- I will convert it
5- To the machine language which is as we know is composed of digital binary numbers that the CPU can understand.
6- Finally the definition of assembler is: The Assembler is used to translate the program written in Assembly language into machine code.
· Section Four: End
1- You may feel upset about some misconceptions about the compiler and the assembler I’ll make it clear for you by writing a code on
2- Word and compile it using the CMD
3- Then writing an assembly code and compile it and see the result
4- I am Ahmad Akel and I’m passionate about programming and technology, thank you to be here, and now let’s move on to the next section
· Section Five: Word
1- Here I will paste a java code that prints hello world and the channel name
2- Then let’s save it on the desktop and give it a name then save it as a plain text and don’t forget to check MS-DOS and Allow Character Substitution and click ok
3- The weird thing is you can’t give the file java suffix from the first time so you have to save it again with java suffix and save it on the same way with plain text and check the MS-DOS and Allow Character Substitution again, Click ok and go to the CMD
4- In order to execute the java code you have to install the JDK which is (Java development tools) on your machine to be able to compile java code that we have, And here is the idea that I wanted to clarify by writing the code in the Word, in order to prove that the Compiler is not the editor when we write the code, but rather the Compiler is a program that translates this code from a programming language into a machine language in order to execute it.
5- Let’s type javac to compile the code
6- Then type java with the file name to execute the file as well.
7- And Here we go see the result.
· Section Six: Assembly
1- Let’s type marie.js.org and here you can compile your assembly code online, basically Assembly language is a type of low-level programming language that is intended to communicate directly with a computer’s hardware. Unlike machine language, which consists of binary and hexadecimal characters, assembly languages are designed to be readable by humans.
2- Here I paste an assembly code that sums two numbers
3- And as you see here in the comments of each instruction and what does each one of them
4- And here are the variables that we used on the code up there
5- Let’s run the program, type the first value, continue running, add the next value and here you see the result and here it’s on decimal twelve
6- And here is the watch list for each value
7- Finally you can see here the machine language that the assembler translated the assembly language to.