|
|
Page | 2/16 | Date | 18.02.2022 | Size | 396.24 Kb. | | #58269 |
| 13516098Address Address - Meaning: the memory address with which it is associated
- The same name may be associated with different addresses at different places and at different times in the program
- The same variable can be associated with
program execution
Name
Address
Type
Lifetime
Value
Scope
Type Type - Meaning: determines the range of values of variables and the set of operations that are defined for values of that type.
- Example: integer type in Java
- Range of values :-2,147,483,648 .. 2,147,483,647
- Set of Operations: +, -, *, Mod, Div
Name
Address
Type
Lifetime
Value
Scope
int n;
703
|
704
|
705
|
706
|
707
|
708
| |
n
| | | | | Value Value - Meaning: the contents of the location with which the variable is associated.
Name
Address
Type
Lifetime
Value
Scope
Meaning: A binding is the association of data/code with an identifier
The Concept of Binding
- Language design time : bind operator symbols to operations
(ex. * is bound to multiplication)
- Language implementation time: bind floating point type to a representation
(in java float represents as 4 bytes according to IEEE-754
- Compile time: bind a variable to a type in C or Java
(ex. int n n is bound integer type at compilation )
4. Load time: bind a C or C++ static variable to a memory cell)
(i.e. allocate in memory)
5. Runtime: bind a non-static local variable to a memory cell.
(ex. object in Java; a value is bound to variable at runtime)
Time of Binding
- Binding time is the time at which a binding takes place.
- Meaning: A binding is the association of data/code with an identifier
Share with your friends: |
The database is protected by copyright ©ininet.org 2024
send message
|
|