Respuesta :

Solution:

Firstly the instructions are parsed, one at a time, and each instruction is converted to the equivalent machine language (ML) binary CPU commands.  

The relative addresses are noted so that any jumps, loops, etc., can be updated to point to the correct (relative) address, and the binary codes representing the loop, jump, etc., will be replace with correct addresses.  

Thus, once all instructions are converted to ML instructions, and all addresses are replaced by the actual (relative) in-memory address, all the instructions are written (as actual binary) to an executable file along with loading instructions (in machine language), telling the CPU where to put the executable program in memory, and then the starting address of the program so the CPU will know where to actually find the program within the memory.


The transformation steps are:

  • The use of compiler to reads the high-level source code and translates it into a program in assembly language.

  • The use of assembler to transforms the program in assembly language into a program in machine language as it is the language that computer understands can work with.

A compiler is used to translates a program written in a high level language into Machine Language.

  • The compiler translates code written in a high level language to a lower level language, object/machine code by creating an executable program that converts from a high level language into machine language or simply do it directly without a middleman.

Programs are often written in the machine language of a given type of computer. They can be executed by the CPU of that type of computer.

High-level language programs need to be translated into machine language before they can be executed.

Conclusively, each note in a high level language is a micro instruction which is translated into several machine language instructions.

Learn more from

https://brainly.com/question/20245390

ACCESS MORE