-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from virtual-labs/dev
Dev
- Loading branch information
Showing
9 changed files
with
56 additions
and
275 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"unit-type": "lu", | ||
"label": "", | ||
"basedir": ".", | ||
"units": [ | ||
{ | ||
"unit-type": "aim" | ||
}, | ||
{ | ||
"target": "theory.html", | ||
"source": "theory.md", | ||
"label": "Theory", | ||
"unit-type": "task", | ||
"content-type": "text" | ||
}, | ||
{ | ||
"target": "procedure.html", | ||
"source": "procedure.md", | ||
"label": "Procedure", | ||
"unit-type": "task", | ||
"content-type": "text" | ||
}, | ||
{ | ||
"target": "simulation.html", | ||
"source": "simulation/index.html", | ||
"label": "Simulation", | ||
"unit-type": "task", | ||
"content-type": "simulation" | ||
}, | ||
{ | ||
"target": "references.html", | ||
"source": "references.md", | ||
"label": "References", | ||
"unit-type": "task", | ||
"content-type": "text" | ||
} | ||
] | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
### Aim of the experiment | ||
Procedures allows a user to define his/her own operation to act upon primitive or user defined data types. Further it allows modular development of programs enabling software readability, maintainability and efficiency also. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
## Experiment name | ||
## Implementing Procedures using ARM ISA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
The following are the objectives of this series of assignments. | ||
|
||
1. Learn Parameter and Return Value passing mechanism | ||
2. Using stack to pass parameters and store other state information. | ||
3. Know the distinction between a leaf and non-lead procedure. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
### Procedure | ||
Procedure is explained in the Simulation. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
### Link your references in here | ||
- Patterson, D. A. and Hennessy, J. L. Computer Organization and Design: the Hardware/Software Interface. ARM Edition. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
### Link your theory in here | ||
To implement procedure abstraction we need to address the following questions: | ||
|
||
- How to pass parameters? | ||
- How to return values? | ||
- How to call the procedure and return back to the calling procedure? | ||
|
||
We can use the registers to pass parameters and return values back and forth between the caller and callee procedures. ARM provides the Branch and Link (BL) Instruction to call procedures. Unlike x86 architecture the return address is not stored on the stack, it is stored in the link register, R14. Code examples are given as a part of the simulator itself. |