Skip to content

Commit

Permalink
Merge pull request #1 from virtual-labs/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
sravanthimodepu authored Aug 11, 2021
2 parents 70bef0d + 29bbc1b commit d18aed9
Show file tree
Hide file tree
Showing 9 changed files with 56 additions and 275 deletions.
39 changes: 39 additions & 0 deletions experiment-descriptor.json
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"
}
]
}

2 changes: 1 addition & 1 deletion experiment/aim.md
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.
2 changes: 1 addition & 1 deletion experiment/experiment-name.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
## Experiment name
## Implementing Procedures using ARM ISA
5 changes: 5 additions & 0 deletions experiment/objective.md
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.
135 changes: 0 additions & 135 deletions experiment/posttest.js

This file was deleted.

135 changes: 0 additions & 135 deletions experiment/pretest.js

This file was deleted.

3 changes: 2 additions & 1 deletion experiment/procedure.md
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
### Procedure
Procedure is explained in the Simulation.

2 changes: 1 addition & 1 deletion experiment/references.md
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.
8 changes: 7 additions & 1 deletion experiment/theory.md
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.

0 comments on commit d18aed9

Please sign in to comment.