FORTRAN OVERVIEW TEST QUESTIONS AND
ANSWERS
If you assign an INT a REAL value, the decimal will be
truncated
What does the link command do?
- Takes the in-depth compiled programs that have been turned into
machine code by a compiler
- links them together along with PRINT and READ commands (if any)
- creates one executable machine code file
What does the run command do?
Takes single machine code file. The loader takes this and loads it into
the main memory.
The address of the first instruction is put into the PC of the CPU
When a caller calls the callee in Fortran, what happens with:
Params
IP fields
PC
- Params passed and put into place
- Stores in IP field address of next instruction in the program unit
- Caller copies into PC the address of the beginning of the unit, thus
passing control over
How is control returned to the caller?
The return block in the subprogram will assign to the PC the bit pattern
in the IP field.
This bit pattern is the address to the next instruction in main.
Pass by ref is when the first formal param uses the _____ space in
memory as the actual param
same
32 bits has how many bytes?
4
Whats coercion
when the compiler promotes data type or truncates data type to another
type.
what information is static in the fortran memory map?
- the address of each location: IPs, params, local var, first executable
statement, etc
ANSWERS
If you assign an INT a REAL value, the decimal will be
truncated
What does the link command do?
- Takes the in-depth compiled programs that have been turned into
machine code by a compiler
- links them together along with PRINT and READ commands (if any)
- creates one executable machine code file
What does the run command do?
Takes single machine code file. The loader takes this and loads it into
the main memory.
The address of the first instruction is put into the PC of the CPU
When a caller calls the callee in Fortran, what happens with:
Params
IP fields
PC
- Params passed and put into place
- Stores in IP field address of next instruction in the program unit
- Caller copies into PC the address of the beginning of the unit, thus
passing control over
How is control returned to the caller?
The return block in the subprogram will assign to the PC the bit pattern
in the IP field.
This bit pattern is the address to the next instruction in main.
Pass by ref is when the first formal param uses the _____ space in
memory as the actual param
same
32 bits has how many bytes?
4
Whats coercion
when the compiler promotes data type or truncates data type to another
type.
what information is static in the fortran memory map?
- the address of each location: IPs, params, local var, first executable
statement, etc