Question: Given the following High Level Language statements. Main() { Int a=14; Int b=30; SUBT(a,b) } SUBT(int x, int y) { Return (y-x) } Assume that

Given the following High Level Language statements.

Main()

{ Int a=14;

Int b=30;

SUBT(a,b)

}

SUBT(int x, int y)

{ Return (y-x)

} Assume that parameters are passed on to the stack and the callee (Called program) cleans the stack.

Write the code for SUBT when it is compiled into Assembly Language. HINT: Draw the Stack Frame first to see how it looks like.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!