q define far and near proceduresprocedure offers


Q. Define Far and Near Procedures?

Procedure offers the primary means of breaking the code in a program into modules. Procedures have one maindrawbackwhich is they need extra code tojoin them together in such a way that they can communicate with each other. This additional code is sometimes denoted as linkage overhead.

A procedure call includes:

1. Unlike other branch instructions a procedure call should save the address of next instruction so that return will be able to branch back to proper place in calling program.

2. Registers used by procedures are need to be stored before their contents are changed and then restored just before procedure is finished.

3. A procedure should have a means of sharing or communicating data with the procedures which call it,it is parameter passing.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: q define far and near proceduresprocedure offers
Reference No:- TGS0328095

Expected delivery within 24 Hours