I am having trouble with the following question. I have already answered the par
ID: 3795039 • Letter: I
Question
I am having trouble with the following question. I have already answered the parts that I know myself.
During which phase of the process from coding to execution do each of the following things happen? Place the most appropriate letter to the answer next to each statement. Some answers may be used more than once. The stack pointer decreases BR X30 External symbols are resolved A BL instruction is executed Symbol tables are created Machine code is copied from disk into memory The stack pointer is incremented When a function returns When a function is called When registers are reread from the stack (popped or filled) During loading During linking During the compilation of source code to object filesExplanation / Answer
Dear Student,
here are the answers...
----------------------------------------------------------------------------------------------------------------------------------------
What is Stack Pointer..?
The Stack Pointer is a register which is used to indicate the last item put onto the stack.
When Stack Pointer Decremented..?
When you put something ONTO the stack( PUSH onto the stack), the Stack Pointer is decremented before the item is placed on the stack.
When Stack Pointer Incremented..?
When you take something OFF the stack( PULL from the stack), the Stack Pointer is Incremented after the item is pulled from the stack.
--------------------------------------------------------------------------------------------------------------------------------------
What are Symbol Tables..?
Symbol table is an important data structure created and maintained by compilers in order to store information about the occurrence of various entities such as variable names, function names, objects, classes, interfaces, etc. Symbol table is used by both the analysis and the synthesis parts of a compiler.
---------------------------------------------------------------------------------------------------------------------------------------
What are External Symbols...?
In C and C++ programming a symbol is the name the compiler uses for a function or global variable. An external symbol is the name used to refer to a symbol that is defined in a different source or object file.
What is BL instruction..?
The BL instruction copy the address of the next instruction into lr ( the link register).
What is BR X30 instruction..?
The BR Xn instruction performs an absolute branch to the address in Xn while BLR Xn has the same effect, but also stores the return address in X30 (the link register). The RET instruction behaves like BR Xn.
What is Machine Code...?
Computer readable code is called machine code.It is only understand by Centre Processing Unit of Computer.
---------------------------------------------------------------------------------------------------------------------------------------
Now by the above defination here i have matched each statement with its correct answer...
Maching Table
--------------------------------------------------------------------------------------------------------------------------------------
The stack pointer decreases ----- When a function returns
BR X30 ----- When a function returns
External symbols are resolved ----- During Linking
A BL instruction is executed ----- When registers are reread from the
stack(popped or filled)
Symbol tables are creating ----- During the compilation of surce code
to object code
Machine code is copied from disk ----- During Loading
into memory
The Stack pointer is incremented ------ When a function is called
---------------------------------------------------------------------------------------------------------------------------------------
Kindly Check and Verify Thanks...!!!
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.