THE USE OF SUB-ROUT|NES |N PROGRAMMES D. J. Wheeler Cambridge & fflinois Universities A sub-routine may perhaps best be des-

easier to use a sub-routine which will meet the

cribed as a self-contained part of a programme,

specifications with a small amount of manipula-

which is capable of being used in different

tion than to make one specially for the purpose.

programmes. a programme.

It is an entity of its own wlthln

It should be pointed out that the prepara-

There is no necessity to compose

tion of a library sub-routine requires a consider-

a programme of a set of distinct sub-routines;

able amount of work.

for the programme can be written as a complete

the effort merely required to code the sub-routine

unit, with no divisions into smaller parts.

in its simplest possible form.

However it is usually advantageous to arrange

be necessary to code it in the library standard

that a programme is comprise~ of a set of sub-

form and this may detract from its efficiency

routines~ some of which have been made specially

in time and space.

for the particular progra~ne while others are

it in such a manner that the operation is

available from a 'library' of standard sub-routines.

generalized to some extent.

The reasons for this will be discussed below.

it has been coded and tested there still re-

This is much greater than

It will usually

It may be desirable to code

However, even after

mains the considerable task of writing a des-

Nhen a programme has been made from a set of sub-routines the breakdown of the code is more

cription so that people not acquainted with the

complete than it would otherwise be.

interior coding can nevertheless use it easily.

This allows

This last task may be the most difficult.

the coder to concentrate on one section of a pro-

•Besides the organization of the individual sub-

gramme at a time without the overall detailed programme continually intruding.

routines there remains the method of the general

Thus the sub-

routines can be more easily coded and the

organization of the library.

How are the sub-

tested in isolation from the rest of the pro-

routines going to be stored?

Are they going to

gramme.

When the entire programme has to be

be stored on punched paper tape or are they going

tested it is with the foreknowledge that the

to be available in the auxiliary store of the ma-

incidence of mistakes in the sub-routines is

chine?

zero (or at least one order of magnitude below

possible to write the sub-routines such that they

that of the untested portions of the programme~)

may be put into arbitrary positions in the store-

Usually it will be found that it is not

although in certain machines this is now possible.

If library sub-routines exist for the major part of a code then the task of constructing the

Usually some translation process will have to be

remaining part of the programme is ~ t u r a l l y

arranged so that an invarlant form of sub-routine

very much less than if the code had to be written

stored on some medium such as paper tape can be

from the very beginning.

translated to the form required in a particular

However, one will

rarely have available sub-routlnes to do exactly

application.

what is required and thus a certain amount of

fixed rules can be set up for adjusting a sub-

manipulation m~y be necessary before a given sub-

routine so that it becomes COrrect in the set of

routine can be used.

This translation is possible because

locations in which it is put and used.

Even so,it is usually far

Page

235

One next considers the methods by which subroutines can be used.

'orders'that are obeyed are identical with those of the machine.

There are a number of

Howsver~ the interpretive routine

retains control and so it is possible to print

°different ways of transferring control to subroutines and arranging that control is re-

out extra information about the course of the

turned to the appropriate point to which it

programme.

is required.

possible to follow the meanderings of the pro~-

One of the simpler methods was

This extra information makes it

that used for the closed sub-routines of the

gram in detail thus helping to locate the errors

EDSAC in which it was arranged that when the

of a programme.

sub-routine had performed its part of the

finding errors in programmes as it takes a long

computation then control was returned to a

time and the programmers knowledge of the pro-.

point in the main programme immediately after

gramme is not utilized - as it should be - in

the orders which had called it into use.

tracing the fault.

This

This is not a good method of

However, it is a useful last

has been described in detail by Goldstine.

resort and can quite often give out information

This perhaps facilitates thinking of a sub-

about a code which would be difficult to find

routine as an 'order' of the machine although

in any other way.

it is usually of a more complicated kind than

Sub-routines seem to have two distinct uses

that wired in the circuits of the machine.

in programmes.

A second more interesting type of subroutine is an interpretive routine.

The first and most obvious use is

for the evaluation of ffunctions;a simple example

In this being the evaluation of sine x given x.

The

type of routine it is arranged that a sequence second use is for the organization of processes of operations is performed each time the subsuch as the integration of a function given routine is called into action, each operation f(x).

This second type requires more considera-

being determined by one parameter or 'order' in tion to make it useful and general. a list of such 'orders'.

For in-

This type of substance how should f(x) be specified for the sub-

routine is particularly useful for coding cerroutine?

One obvious and useful way is to allow

tain special types of arithmetic for the mathe integrating sub-routine access to an auxchine,for example, floating point arithmetic iliary sub-routine which is capable of evaluating in which numbers are expressed as ~ x

l0p .

f(x).

Thus the sub-routine executes the 'orders' in

The above remarks may be s~Jmm~rized by

the list in a similar fashion to the way that the machine obeys ordinary orders.

saying sub-routines are very useful-although not

However 3

absolutely necessary-and that the prime objectives

the orders that it does are determined by the

to be born in mind when constructing them are

parts of the sub-routine, and so can be made to

simplicity of use 3 correctness of codes and accuracy

do any kind of operation or arithmetic.

of description.

One extension of an interpretive routine is

All complexities should-if possible

-be buried out of sight.

a checking routine which is so arranged that the

Page 236

THE USE OF SUB-ROUT|NES |N PROGRAMMES D. J. Wheeler ...

A sub-routine may perhaps best be des- cribed as a self-contained part of a programme, which is capable of being used in different programmes. It is an entity of ...

147KB Sizes 2 Downloads 75 Views

Recommend Documents

Use of Real World Data in Development Programmes - European ...
6. RCT. Claims data. EHRs. Registries ... CHMP asked to perform a comparison of the treated patients (from both studies) ... patient age (plus or minus 3 years).

D etermination of N,N-dimethyltryptamine and b ...
peoples native to the Amazon and Orinoco river ... systemic circulation and the central nervous system ... file, as measured by subjective effect self-assessment.

For the exclusive use of D. FITZPATRICK -
Labella, Krishnuvara Ramakrishna, and Bob Sledge were MBA students at a prestigious West ... offered by this new technology. They wanted to explore the ..... While the founders understood the information in Exhibit 2, they still disagreed ...

Teachers' Dignity Coalition (psAA%\J)N-Lr
Jan 6, 2016 - Secretariat at (02) 4446564 (look for Ms. Joana Escultura, TDC staff), or with the ... QUIRINO BALDECANAS- BACOOR MIS ANNEX. 72.

Page 1 S. E. C. O N D E D T O N ENVIRONMENTA ...
Photography and the Arctic National Wildlife Refuge 69. Summary 70 .... burn stores of chemical weapons near schools and residential I eighborhoods? In ..... Efforts to restore Florida's magnificent Everglades had fallen behind schedule,.

J O N A TH A N B O B A D IL LP APP R O VE D: Fa tim a C. Ro s a l ...
J. O. N. A. TH. A. N B. O. B. A. D. IL. LP. P. TA Pr e s ide n t. 0. CU. P. E. S. PA Pre s ide n t n. APP. R. O. VE. D: U- U- U-. Fa tim a C. Ro s a l. E du c a tion. A. LEJ.

jim doyle - The Wheeler Report
16 Nov 2012 - Services that Wisconsin will not build a state-based health insurance exchange and will defer to the federal government's insurance exchange. The Patient Protection and Affordable Care Act (PPACA) gives states three options in building

News-N-D (004).pdf
Sign in. Page. 1. /. 1. Loading… Page 1 of 1. Page 1 of 1. News-N-D (004).pdf. News-N-D (004).pdf. Open. Extract. Open with. Sign In. Main menu. Displaying ...

jim doyle - The Wheeler Report
Nov 16, 2012 - Services that Wisconsin will not build a state-based health insurance exchange and will defer to the federal government's insurance exchange. The Patient Protection and Affordable Care Act (PPACA) gives states three options in building

The Millionaire Next Door ( Thomas J. Stanley & William D. Danko ...
Whoops! There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. The Millionaire Next Door ( Thomas J. Stanley & William D. Danko, 1998).pdf. The Millionaire Next Do

Lindsey's Law - The Wheeler Report
Jan 23, 2014 - “Lindsey's Law” Passed by Assembly Criminal Justice Committee ... November 22, 2013, “Lindsey's Law” seeks to provide better access to counseling and mental health ... to have greater access to the help and care they need.” .

Lindsey's Law - The Wheeler Report
Jan 23, 2014 - 'Lindsey's Law' and scheduling this bill for a vote today. ... According to the Department of Health Services, from 2006 to 2010, almost 5,000 ...

Use of Islamic BeHeß Ín Mathematícs
On the other hand, the education of a Muslim scientist, thus ftr, has ... structures implement an algorithm to a computer program. A separate .... rn tlrs dtvlruty.

Evaluating the Impact of Health Programmes on ... - Wiley Online Library
Evaluating the Impact of Health Programmes on Productivity. 303. The presence of the second term in the last line of Equation 1 summarizes the key identification problem that must be solved. In this section, we outline the most widely used empirical

Evaluating the Impact of Health Programmes on ... - Semantic Scholar
Malcolm Keswell, School of Economics, University of Cape Town, Rondebosch, ...... 'Evaluating Anti-poverty Programs', in R. E. Evenson and T. P. Schultz (eds.) ...

Jaxton Wheeler boundgods.pdf
archives page 5 of 6 sexflexible. Blogs watch boy 39 s blog guide. Jaxton wheeler and connor halsted. at bound gods gay tube videos. Casting news jessy ares, ...

Paper Title - Fred Wheeler
a,bGE Global Research, John F. Welch Technology Center, Bangalore ..... on Medical Image Compression and Storage Options, Educational Technology ...

Evaluating the Impact of Health Programmes on ... - Semantic Scholar
The most basic parameter of interest to be estimated is the average treatment ..... be to partner with medical randomized controlled studies to study economic outcomes. ..... of the institutional environment as well as the administration of the ...

pdf-136\nine-stories-by-j-d-salinger.pdf
pdf-136\nine-stories-by-j-d-salinger.pdf. pdf-136\nine-stories-by-j-d-salinger.pdf. Open. Extract. Open with. Sign In. Main menu.

J. Ferrante R. Stevens, Alternate J. Fox D. Hoffman
The Motion was made to approve the Minutes of the February 2, 2016. Planning Board Meeting as written. Motion carried. AGENDA. Agenda Item 1. Application for Site Plan Approval per Town of Williamson, Town Code, Chapter 178,. Article VI, Section 178-

pdf-14101\by-steven-d-levitt-stephen-j-dubner-superfreakonomics ...
... the apps below to open or edit this item. pdf-14101\by-steven-d-levitt-stephen-j-dubner-superfre ... stitutes-and-why-suicide-bombers-should-buy-life-i.pdf.

kjkh‰w« : bg h® fU¤J v‹d? -
Mar 25, 2010 - v‹d j仲v‹W« nf˙‹nwh«. ek¡F¡ foj« vG歍e©g®, “麊J kj手š .... mog燻nj eÅ¡byhG¡f« v‹w fU¤ij FHªijÂ¥ gUt手ny. 仝j¤J 彳»wh®fŸ. nk‰F縞聜l 鮯©L fhuz§f ...