What are Program execution cycle - Ishwaranand

News

What are Program execution cycle

Program execution cycle

Q)Explain program execution cycle with diagram.
Q)Explain compiler, linker and loader.

The execution cycle of a typical program goes through the following steps.
program execution steps, instruction execution cycle in computer architecture, program execution example, program execution process in microprocessor, example of program execution in computer architecture, instruction cycle, execute cycle, instruction cycle pdf, execution cycle in 8085 microprocessor', complement instruction of jz, execution of instruction, execution unit of 8086 consists of, instruction cycle slideshare, what is program execution, program execution in memory, executing program meaning, i/o operations in operating system, what is motherboard of a computer system, memory management virtual memory multitasking, how does a cpu process instructions, when the cpu execute iret, program execution meaning in hindi, the execution cycle and the system clock, program in execution is called, cycle quantization in computer architecture,
Image Source ~ Crafted With ©Ishwaranand - 2020 ~ Image by ©Ishwaranand

Source code on Program execution cycle

  • The first step of program development starts from writing the source code in an editor like turbo C. This source code is saved with .c extension. E.g "hello.c"

The compiler on Program execution cycle

  • The compiler is the translating program that converts a high-level language program into a low-level language program.
  • A 'C' program is a high-level program, this program is not understandable by computer directly. A computer only understands the binary language i.e. low-level language.
  • Hence in order to run the 'c' program, it must be converted into the binary form, this task is done by the compiler.
  • The compiler takes the source file (hell.c) as input and generates the object code (hello.obj) as the output. This object code is the binary code of program source code.

Linker on Program execution cycle

  • The linker performs the important task of linking together several object modules. The need for a linker arises when a particular program is made up of several object modules.
  • The original source program may be in a high-level language. Once they are converted into machine code, they must be linked together to be executed as a single program.
  • The linker, after linking all object modules together gives the single executable file. which is ready for execution.

Loader on Program execution cycle

  • The task of loading the linked object modules is performed by a loader. The loader actually loads the executable code from secondary memory to primary memory.
  • There are two types of loader depending on the way the loading is performed: Absolute loaders and relocating loaders.
  • The absolute loaders load the executable code into the memory location specified in the object modules. Relocating loaders on other hand, load the object code into memory locations which are decided at load time.

No comments

Comment on Ishwaranand or Happy Day
Not, Add any types of links