Sunteți pe pagina 1din 4

Binding in computation means the binding of a program element to a particular characteristics or property from a set of possible properties.

The time during program processing when this choice is made is called binding time of that property for that element.

Execution time(run time) bindingBinding that are performed during the time of execution of program is called run time binding.

i. On entry to a subprogram:

Two important subcategories are as follows


It includes binding of formal parameters and actual parameters when the control enters that subprogram.
Basic binding of variables to their values can occur any time during the entire program

ii. At arbitrary point during execution:

Translation

binding-

time(compile time)

Binding that are performed during the compilation of the program is called compile time binding. The subcategories are as follows i. Binding chosen by the programmer : It includes variable names, data type used, program statement structure and so on. ii. Binding chosen by the compiler : It is performed by the compiler without direct programmer specification . The memory location allocated to data object is handled by the compiler not the programmer.

Language

Definition Binding-

Most of the structure of a program is fixed at the time the language is defined, for examplethe possible alternative statement forms, data structure types etc are often fixed at language definition time. Consider a simple example: X=X+10; i. Set of types for variable X ii. Type of variable X iii. Value of variable X iv. Properties of the operator +

S-ar putea să vă placă și