Factbites
 Where results make sense
About us   |   Why use us?   |   Reviews   |   PR   |   Contact us  

Topic: Subprogram


Related Topics
PTU
RFU
60

  
  Subroutine - Wikipedia, the free encyclopedia
A simple example is a subprogram that implements a Pseudorandom number generator; that is, a subprogram that returns a random number each time it is called.
A subprogram may find it useful to make use of a certain amount of "scratch" space; that is, memory used during the execution of that subprogram to hold intermediate results.
Event handler, or simply "handler," is a subprogram that is called in response to an "event", such as a computer user moving the mouse or typing on the keyboard.
en.wikipedia.org /wiki/Subprogram   (1816 words)

  
 [No title]
Subprograms Subprograms are one of the four forms of program unit, of which programs can be composed.
If the name of a generic subprogram is mentioned in the pragma, this indicates that inline expansion is desired for calls of all subprograms obtained by instantiation of the 6 - 11 named generic unit.
A subprogram or entry has the same parameter and result type profile as another subprogram or entry if and only if both have the same parameter type profile, and either both are functions with the same result base type, or neither of the two is a function.
www.csci.csusb.edu /dick/cs320/ada/lrm/06.subprograms   (3082 words)

  
 AARM95 - Remote Subprogram Calls   (Site not responding. Last check: 2007-10-21)
For the execution of a remote subprogram call, subprogram parameters (and later the results, if any) are passed using a stream-oriented representation (see 13.13.1) [which is suitable for transmission between partitions].
If a remote subprogram call is received by a called partition before the partition has completed its elaboration, the call is kept pending until the called partition completes its elaboration (unless the call is cancelled by the calling partition prior to that).
In a remote subprogram call with a formal parameter of a class-wide type, a check is made that the tag of the actual parameter identifies a tagged type declared in a declared-pure or shared passive library unit, or in the visible part of a remote types or remote call interface library unit.
www.ada-deutschland.de /AdaTourCD2004/dokumente/AARMHTM/AA-E-4.html   (2217 words)

  
 RFC 120 (rfc120) - Network PL1 subprograms
The subprogram waits until such a call is received, at which time the calling process' socket identifier is returned to the calling program.
The subprogram waits for the data to be received by the foreign socket, or to be queued locally by the NCP.
The subprogram first sends a string of data to the foreign socket from the specified send socket, waits for it to be received by the foreign socket (or queued locally by the NCP), and then waits for a reply directed toward the specified receive socket.
www.faqs.org /rfcs/rfc120.html   (3275 words)

  
 5.5.1.2 Subprogram coupling   (Site not responding. Last check: 2007-10-21)
The second possible reason why a subprogram should be called from a large number of different places would be because the subprogram is performing a number of different operations, which would be better performed by a number of different subprograms.
The first clue would be that the subprogram is itself complex and the second would be the presence of in-only parameters whose only effect is to control the operation of the subprogram.
A subprogram with a large fan-out is by definition complex and would have been flagged as such at the design stage.
www.scism.sbu.ac.uk /law/Section5/chap5/s5c5p12.html   (504 words)

  
 SUB(stmt)
An Arg in the definition of a subprogram is known as a formal parameter to the subprogram which will be replaced with an actual parameter when the call to the subprogram occurs.
Within a subprogram, it is not possible to determine whether an array passed as an argument is static or dynamic; therefore, it is not possible to dimension or erase such an array (see dim).
The data are passed to the subprogram which computes the relationship between the pairs in terms of a linear equation.
www.leinweb.com /basic/manual/man1/sub.stmt.htm   (824 words)

  
 Ada 95 RM - E.4 Remote Subprogram Calls
The partition that originates the remote subprogram call is the calling partition, and the partition that executes the corresponding subprogram body is the called partition.
After the remote subprogram completes, marshalling is performed in the called partition, and finally unmarshalling is done in the calling partition.
The task executing a remote subprogram call blocks until the subprogram in the called partition returns, unless the call is asynchronous.
www-users.cs.york.ac.uk /~andy/lrm95/e_04.htm   (824 words)

  
 Subprogram Linkage   (Site not responding. Last check: 2007-10-21)
A subprogram is a sequence of instructions whose execution is invoked from one or more remote locations in a program, with the expectation that when the subprogram execution is complete, execution resumes at the instruction after the one that invoked the subprogram.
Subprogram linkage refers to the mechanics of communication between a subprogram invoker (the caller) and the subprogram itself (the callee).
The choice of a protocol for a subprogram depends on the overall size of the program and the complexity of subprogram nesting.
www.d.umn.edu /~gshute/cs2521/asm/linkage.html   (424 words)

  
 15 FUNCTIONS AND SUBROUTINES
The form of a function subprogram is as described in 2.4 and 3.5, except as noted in 15.5.3 and 15.7.4.
The form of a subroutine subprogram is as described in 2.4 and 3.5, except as noted in 15.6.3 and 15.7.4.
Within a function subprogram, all variables whose names are also the names of entries are associated with each other and with the variable, if any, whose name is also the name of the function subprogram (17.1.3).
www.fortran.com /fortran/F77_std/rjcnf0001-sh-15.html   (7827 words)

  
 Basic Lesson 9
Typically a subprogram will handle just one assignment in a main program, while the job of the main program is to shuffle the action back and forth in an organized way between all the subprograms.
Then the subprogram "shares" the value of Z with the main program - that is, before it terminates it informs the main program of the value of Z. A second way of informing the main program of the sum is to leave the subprogram alone, but insert a COMMON SHARED statement into the main program.
The subprogram then substitutes V back for A, W for B, X for C, Y for D, and Z for E, and the main program accepts these new values for A, B, C, D, E. Variables in a subprogram may be strings or arrays as well as numbers.
www.math.hawaii.edu /~hile/basic/basic9.htm   (1858 words)

  
 [No title]   (Site not responding. Last check: 2007-10-21)
One of the main aims of the subprogram is to ensure that abalone aquaculture research and development is coordinated to make the most efficient use of available resources and integrate industry and research providers.
To ensure that the Abalone Aquaculture Subprogram continues to address the proposed industry requirements and that effective and efficient communication is maintained the following administrative arrangements have been set in place and have proved to be effective vehicles to achieve their aims.
One of the major roles of the subprogram leader is to ensure that outputs from individual projects are developed and extended according to industry requirements.
www.frdc.com.au /research/programs/aas/about/opprocedures.htm   (2009 words)

  
 Ada 95 RM - 8.5.4 Subprogram Renaming Declarations
If the renaming-as-body completes that declaration before the subprogram it declares is frozen, the subprogram it declares takes its convention from the renamed subprogram; otherwise the convention of the renamed subprogram shall not be Intrinsic.
For a call on a renaming of a dispatching subprogram that is overridden, if the overriding occurred before the renaming, then the body executed is that of the overriding declaration, even if the overriding declaration is not visible at the place of the renaming; otherwise, the inherited or predefined subprogram is called.
A function whose defining_designator is either an identifier or an operator_symbol can be renamed with either an identifier or an operator_symbol; for renaming as an operator, the subprogram specification given in the renaming_declaration is subject to the rules given in 6.6 for operator declarations.
lglwww.epfl.ch /docs/ada/rm95html-1.0/rm9x-08-05-04.html   (582 words)

  
 [No title]
In these forms, the subprogram specification is followed by the reserved word is and either a box or the name of a subprogram or entry.
A generic formal subprogram denotes the subprogram, enumeration literal, or entry supplied as the corresponding generic actual parameter in a generic instantiation, as described in section 12.3(f).
If two overloaded subprograms declared in a generic package specification differ only by the (formal) type of their parameters and results, then there exist legal instantiations for which all calls of these subprograms from outside the instance are ambiguous.
www.csci.csusb.edu /dick/cs320/ada/lrm/12.generics   (3312 words)

  
 1.3.2 Object diagrams, data flow diagrams, subprogram declarations and package specifications   (Site not responding. Last check: 2007-10-21)
The most obvious difference between the representations is that two, subprogram declarations and package specifications, are expressed in Ada, and two, object diagrams and data flow diagrams, are expressed using a visual notation.
In addition to subprograms they will include information concerning data types, and other facilities yet to be introduced, which may be provided by a package.
The processes of transforming a data flow interface diagram into a subprogram declaration, or vice versa, is amongst the most mechanical and thus easiest activities involved in software development.
www.scism.sbu.ac.uk /law/Section1/chap3/s1c3p2.html   (607 words)

  
 CmSc315 Chapter 06
Subprograms can be viewed as abstract operations on a predefined data set.
Subprogram definition: the set of statements constituting the body of the subprogram.
Subprogram activation: a data structure (record) created upon invoking the subprogram.
www.simpson.edu /~sinapova/cmsc315/LN315_Pratt/L06-Encapsulation.htm   (722 words)

  
 [No title]
In particular, given the definition of the visible part of a callable entity in 8.2(6), a subprogram is "declared in the visible part of" a library subprogram, thus qualifying as a remote subprogram according to E.2.3(7).
In particular, given the definition of > the visible part of a callable entity in 8.2(6), a subprogram is > "declared in the visible part of" a library subprogram, thus qualifying > as a remote subprogram according to E.2.3(7).
Of course you just have to wrap the subprogram in a package, but that may be a nuisance from the stanpoint of CM (you now have two different sources instead of one).
www.ada-auth.org /cgi-bin/cvsweb.cgi/AIs/AI-00048.TXT?rev=1.4   (4876 words)

  
 [No title]
A subprogram is said to be active if, after having been called, it has begun execution but has not yet completed that execution.
Subprograms call statements must include the name of the subprogram and a list of parameters to be bound to the formal parameters of the subprogram.
Subprograms cannot be history sensitive “can’t retain data values of local vars between calls.” Advantages of using static vars: a.
www.selu.edu /Academics/Depts/Cmps/galkadi/401/notes/chapter9.doc   (1457 words)

  
 Learn more about Function in the online encyclopedia.   (Site not responding. Last check: 2007-10-21)
In computer science, a function is a subprogram or subroutine, commonly one intended to directly return a value to its caller.
Beware that sometimes the codomain is wrongly called the range because of a failure to distinguish between possible and actual values.
In computer science, the datatypes of the arguments and return values specify the domain and codomain (respectively) of a subprogram.
www.onlineencyclopedia.org /f/fu/function.html   (2179 words)

  
 ADB Approves Third Subprogram Loan for the Development of Cambodia's Financial Sector - ADB.org
The first subprogram was approved in November 2001, and the second in November 2002.
The achievements of the first two subprograms and the Government's growing capacity to implement reforms justify continued support under the third subprogram.
The third subprogram will help the Government adopt a secured transactions law, establish a public registry for secured transactions and establish a financial intelligence unit.
www.adb.org /Documents/News/2005/nr2005149.asp   (436 words)

  
 LRM Chapter 6-03
It follows from the visibility rules that if a subprogram declared in a package is to be visible outside the package, a subprogram specification must be given in the visible part of the package.
Two subprogram specifications are said to conform if, apart from comments and the above allowed variations, both specifications are formed by the same sequence of lexical elements, and corresponding lexical elements are given the same meaning by the visibility and overloading rules.
If the name of a generic subprogram is mentioned in the pragma, this indicates that inline expansion is desired for calls of all subprograms obtained by instantiation of the named generic unit.
www.cs.kuleuven.ac.be /~dirk/ada-belgium/docs/rm83/lrm-06-03.html   (965 words)

  
 Ada 95 RM - 6.3 Subprogram Bodies   (Site not responding. Last check: 2007-10-21)
A subprogram_body specifies the execution of a subprogram.
In contrast to other bodies, a subprogram_body need not be the completion of a previous declaration, in which case the body declares the subprogram.
The execution of a subprogram_body is invoked by a subprogram call.
www.grammatech.com /rm95html-1.0/rm9x-06-03.html   (243 words)

  
 [No title]
However, how main subprograms are designated is implementation-defined; implementations are not required to be able to use any view of a parameterless child procedure as a main subprogram.
In particular, an implementation is not required to support a library unit renames of a parameterless procedure as the main subprogram.
Since the usual case is to have a main subprogram, a -no-main switch might make sense, but the RM has nothing to say about that.
www.ada-auth.org /cgi-bin/cvsweb.cgi/AIs/AI-00172.TXT?rev=1.3   (2305 words)

  
 RFC120   (Site not responding. Last check: 2007-10-21)
RFC 120 NETWORK PL1 SUBPROGRAMS 'deficit' is the send/receive deficit in bits, or zero, and has the attributes BINARY FIXED(31,0).
RFC 120 NETWORK PL1 SUBPROGRAMS header(s) received total more data than 'len', the excess data will be received, but will not be placed into 'bfr', and will not be accessible to the program.
RFC 120 NETWORK PL1 SUBPROGRAMS (11) ERASE This subprogram causes data constituting an On-Line System command to erase the display tube to be sent from the specified local socket.
rfc.net /rfc0120.html   (3403 words)

  
 [No title]   (Site not responding. Last check: 2007-10-21)
Possibilities: It is that of the subprogram that enacted it.
Shallow binding It is that of the subprogram that declared it.
It is that of the subprogram that passed it.
www.cse.ohio-state.edu /~bmathis/655-topics/traditional-topics/subroutines.ppt   (726 words)

  
 The Fisheries Research and Development Corporation (FRDC) Aquatic Animal Health Subprogram   (Site not responding. Last check: 2007-10-21)
The Aquatic Animal Health Subprogram was established in 2001 to provide a cohesive and national approach to aquatic animal health research and development in Australia.
The scope of the Aquatic Animal Health Subprogram is ‘health’, with a focus on infectious diseases.
In these cases, these subprograms (eg Atlantic salmon; tuna; abalone; rock lobster) would have prime carriage for health research projects specific to their species, and the health subprogram would ensure cross-linkage and provide advice where necessary.
www.frdc.com.au /research/programs/aah   (470 words)

  
 Ada 95 RM - 6.1 Subprogram Declarations
A formal parameter is an object directly visible within a subprogram_body that represents the actual parameter passed to the subprogram in a call; it is declared by a parameter_specification.
A subprogram declared by an abstract_subprogram_declaration is abstract; a subprogram declared by a subprogram_declaration is not.
They are not evaluated during the elaboration of the subprogram declaration.
www.grammatech.com /rm95html-1.0/rm9x-06-01.html   (589 words)

Try your search on: Qwika (all wikis)

Factbites
  About us   |   Why use us?   |   Reviews   |   Press   |   Contact us  
Copyright © 2005-2007 www.factbites.com Usage implies agreement with terms.