Difference between program block and control section
Answers
Answered by
25
Program blocks: segments of code that are rearranged within a single object program unit. Control Sections: segments that are translated into independent object program units. A block can contain separate segments of code in source program. Assembler will logically re-arrange them together.
Answered by
2
Program block Allows programmers to write a constant operand's value as part of the instruction that utilizes it. A control section is a piece of a program that keeps its identity after it has been assembled.
Difference between program block and control section :
Program Block :
- Allow programmers to write a constant operand's value as part of the instruction that utilizes it.
- This eliminates the need to define the constant and create a name for it elsewhere in the program.
Control Section :
- Translations of segments into separate object program units.
- A control section is a piece of a program that keeps its identity after it has been assembled. Subroutines are frequently utilized in control sections. The main advantage of employing control sections is that they provide more flexibility.
Similar questions