Search: in
Subroutine
Subroutine in Encyclopedia Encyclopedia
  Tutorials     Encyclopedia     Videos     Books     Software     DVDs  
       
Encyclopedia results for Subroutine

Subroutine





Encyclopedia results for Subroutine

  1. Subroutine

    In computer science , a subroutine also called procedure , function , routine , method , or subprogram ..., a subroutine behaves in much the same way as a computer program that is used as one step in a larger program or another subprogram. A subroutine is often coded so that it can be started called ... other subroutines, and then branch back return to the next instruction after the call once the subroutine ... called threaded code , the executable program is basically a sequence of subroutine calls. Maurice Wilkes ... of this concept, which they referred to as closed subroutine . ref cite book last Wilkes first ... publisher Addison Wesley year 1951 ref Main concepts The content of a subroutine is its body , the piece of program code that is executed when the subroutine is called or invoked . A subroutine ... is to implement function mathematics mathematical functions , in which the purpose of the subroutine ... passed to the subroutine. Examples might include computing the logarithm of a number or the determinant of a Matrix mathematics matrix . However, a subroutine call may also have side effect .... A subroutine can be coded so that it may Recursion computer science call itself recursively , at one ... algorithms . A subroutine whose purpose is to compute a single boolean valued function that is, to answer ... body that comprises the subroutine, assigning a identifier name to the subroutine, specifying ... outside the subroutine that are accessible within it, calling the subroutine, providing values to its ... hiding implementation details from users of the subroutine. improves Traceability Software traceability ... of a subroutine rather than using in line code imposes some computational overhead in the call mechanism itself The subroutine typically requires standard Housekeeping computing housekeeping code ... early assemblers, subroutine support was limited. Subroutines were not explicitly separated from each other or from the main program, and indeed the source code of a subroutine could be interspersed ...   more details



  1. Leaf subroutine

    A leaf subroutine is a subroutine which cannot in turn call another subroutine. Some compilers can apply special program optimizations to leaf subroutines, such as the use of link register s to avoid having to push the return address on the stack. The term leaf refers to their position as leaf node s in the call graph of the program. Category Subroutines compsci stub ...   more details



  1. Harwell Subroutine Library

    for other uses of the word HSL HSL disambiguation HSL , originally the Harwell Subroutine Library , is a collection of Fortran 77 and 95 codes that address core problems in numerical analysis . It is primarily developed by the Numerical Analysis Group at the Rutherford Appleton Laboratory with contributions from other experts in the field. HSL codes are easily recognizable by the format of their names, consisting of two letters followed by two numbers, dating back to early versions of Fortran s limited subroutine name length. The letters denote a broad classification of the problem they solve, and the numbers serve to distinguish different codes. For example, the well known sparse LU code MA28 superseded by MA48 is a Matrix Algebra code number 28. Fortran 95 codes are differentiated from Fortran 77 codes by the prefix HSL . History Early history Original development of the Harwell Subroutine Library began in 1963 by Mike Powell and Mike Hopper for internal use on an IBM mainframe at Atomic Energy Research Establishment AERE Harwell . Early contributors also included Alan Curtis. With a spreading reputation, the Library was distributed externally for the first time in 1964 upon request. The first library catalog AERE Report M 1748 was released in 1966. Recent history Over the intervening years, HSL has striven to maintain a high standard of reliability and has garnered a worldwide reputation as a prime source of numerical software. It has undergone a number of changes to reflect newly available features of the Fortran language, completing in 1990 the conversion to Fortran 77, and more recently, the entire Library has been made thread safe . Many newer codes are written in Fortran 95. New packages continue to be developed, with a new release issued every two to three years. Many older codes have now been superseded and are available in the HSL Archive. Licensing The current version, HSL 2007 is a commercial product sold by Aspentech, but is also available without charge ...   more details



  1. Stubroutine

    Orphan date September 2010 A stubroutine also known as a stub function , null script , null subroutine , or null function is a scripting language command script or subroutine program subroutine which does nothing but return a constant value. They are used during computer programming program development , where the functional implementation of routines is delayed while other routines are developed. This is also one of the techniques used by the software piracy software pirating community to bypass callback computer science callbacks and software license license checking code the target program is Assembly language disassembled and the appropriate code is substituted for a null subroutine that just returns the value expected by the caller. Category Subroutines Computer stub ...   more details



  1. Generator function

    In mathematics, the term generator function may refer to Generator computer science , a special subroutine routine that can be used to control the iteration behaviour of a control flow Loops loop . A stochastic process in probability theory . Disambig ...   more details



  1. Routine

    wiktionary routine Routine may refer to Subroutine in computer science Choreographed routine , orchestrated dance involving several performers Comedy routine , comedic act or part of an act Visual routine , visual cognitive means of extracting information from a scene Routine activity theory , sub field of criminology Routine SWT , first of four stories in the second issue of the Star Wars Tales series Routine Irregular , 2002 debut album by the British metal band Fony Routine Valor , 2006 Star Wars comic book by Dark Horse Comics Subroutine , reused piece of computer code Coroutine , generalized reentrant computer subroutine having multiple entry points Ethnomethodology , sociological discipline focused on the methods groups use to create societal order disambig de Routine fr Routine ko ja ...   more details



  1. Reentrant

    wiktionary Reentrant or re entrant can refer to Reentrant subroutine in computer programming Reentrant mutex in computer science Reentry neural circuitry in neuroscience Salients, re entrants and pockets in military tactics Reentrant tuning in music See also Reentry Reentrant dysrhythmia , a type of cardiac arrhythmia disambig ...   more details



  1. Link register

    Unreferenced stub auto yes date December 2009 A link register , in many instruction set architecture s such as the PowerPC , ARM architecture ARM , and the PA RISC , is a special purpose processor register register which holds the address to return to when a function programming function call completes. Other architectures such as SPARC have a register with the same purpose but another name in this case, output register 7 . The usage of a link register allows for faster calls to leaf subroutine s. When the subroutine is non leaf, passing the result address in a register still results in generation of more efficient code for thunk s, e.g. for a function whose sole purpose is to call another function with arguments rearranged in some way. Other subroutines can benefit from the use of link register because it can be saved in a batch with other callee used registers e.g. an ARM subroutine pushes registers 4 7 along with the link register, LR, by the single instruction code STMDB SP , R4 R7, LR code pipelining all memory writes required. DEFAULTSORT Link Register Category Central processing unit Compu hardware stub ...   more details



  1. Blind faith (computer programming)

    Other uses Blind Faith disambiguation unreferenced date January 2010 notability dave December 2010 date December 2010 Unreferenced auto yes date December 2009 In computer programming blind faith also known as blind programming or blind coding is a situation whereby a programmer Software engineering develops a solution or fixes a computer bug and Software deployment deploys it without ever testing his creation. The programmer in this situation has blind faith in his own abilities. Another form of blind faith is when a programmer calls a subroutine without checking the result. E.g. A programmer System call calls a subroutine to save user data on the hard disk without checking whether the operation was successful or not. In this case the programmer has blind faith in the subroutine always performing what the programmer intends to accomplish. Blind faith is an example of an Anti patterns Anti pattern . Other common names for blind faith include God oriented programming and divine orientation . Blind faith programming can also be used as a challenge to test programming skills. The recommended alternative to blind programming is test driven development . DEFAULTSORT Blind Faith Computer Science Category Anti patterns Comp sci stub it Fede cieca ...   more details



  1. 51-FORTH

    51 FORTH is an implementation of the Forth programming language Forth programming language for the Intel 8051 microcontroller . It was created in 1989 by Scott Gehmlich of IDACOM Electronics which was acquired by Hewlett Packard in 1990 , and sent to Giovanni Moretti of Massey University , from whom it was propagated widely. The original code 51forth.zip code package is available from many archive sites, along with several other implementations of Forth. This implementation is subroutine threading subroutine threaded , with about 20 words written in assembly language , and the complete system occupying a total of about 8K of RAM. It was cross developed from a VAX to an RTX2000 Forth system connected to dual ported RAM accessible to the microcontroller. The sources and documentation are in the public domain . External links http www.ai.uga.edu mc microcontrollers 8051 UGa site with a copy of 51forth.zip http ftp.funet.fi pub microprocs 8051 signetics bbs FUNet copy Category Forth programming language family ms 51 FORTH sr 51forth ...   more details



  1. Caller

    Wiktionary Caller may refer to Caller telecommunications , a party that originates a call Caller dancing , a person that calls dance figures in round dances and square dances Caller, the Catalan equivalent of Cagliari The Caller , official print publication for Crime Stoppers International A software program or procedure that invokes a subroutine See also Call disambiguation Calling disambiguation disambig ...   more details



  1. Call site

    Unreferenced stub auto yes date December 2009 In programming, a call site of a function programming function subroutine is a line in the code which calls or may call, through dynamic dispatch a function. A call site passes zero or more argument programming arguments to the function, and receives zero or more return value s. Example this is a function definition function sqr x return x x these are two call sites of the function a sqr b c sqr b Assembler example IBM 360 or Z Architecture usually external call.... R13 usually points to a save area for general purpose registers beforehand and R1 points to a list of addresses of parameters if any LA R1, A B point to address of variable B L R15, A SQR Load pointer address constant to separately compiled assembled subroutine BALR R14,R15 Go to subroutine, which returns usually at zero displacement on R14 internal call usually much smaller overhead and possibly known parameters BAL R14,SQR Go to program label and return Sometimes, as an efficient method of indicating success or otherwise, return may be accomplished by returning at 0 or 4, 8 etc. requiring a small branch table at the return point to go directly to process the case as in High level programming language HLL Switch statement . BAL R14,SQR Go to program label and return using offset on R14 as return address B FAIL RET 0 SOMETHING WRONG RET 4 O.K. Conventionally however, a return code is set in R15 0 OK, 4 failure, or similar .. but requiring a separate instruction to test R15 or use directly as a branch index. See also Function inlining subroutine DEFAULTSORT Call Site Compu lang stub Category Subroutines ...   more details



  1. Recursive function

    Recursive function may refer to Recursion computer science , a procedure or subroutine, implemented in a programming language, whose implementation references itself A total computable function , a function which is defined for all possible inputs See also recursive function , defined from a particular formal model of computable functions using primitive recursion and the operator Recurrence relation , in mathematics, an equation that defines a sequence recursively disambig Category Recursion cs Rekurzivn funkce ru ...   more details



  1. Non-recursive function

    Non recursive function might refer to Recursion computer science a procedure or subroutine, implemented in a programming language, whose implementation references itself recursive function , defined from a particular formal model of computable functions using primitive recursion and the operator Computable function , or total recursive function, a function computable by a turing machine Turing machine See also Recursive disambiguation disambig cs Rekurzivn funkce ...   more details



  1. Non-structured programming

    such as loops, branches and jumps. Although there is no concept of Subroutine procedures in the non ... , subroutines are allowed. Unlike a procedure, a subroutine may have several entry and exit points, and a direct jump into or out of subroutine is theoretically allowed. This flexibility allows ... . This means there is no automatic context refresh when calling a subroutine, so all variables might ... difficult, but some cases of recursion where no subroutine state values are needed after the recursive call are possible if variables dedicated to the recursive subroutine are explicitly cleared or re initialized to their original value on entry to the subroutine. The depth of nesting also may be limited ...   more details



  1. Return type

    Refimprove date December 2011 In computer programming , the return type or result type defines and constrains the data type of the value returned from a subroutine or Method computer programming method . ref cite book last1 Kernighan first1 Brian W. author1 link Brian Kernighan last2 Ritchie first2 Dennis M. author2 link Dennis Ritchie title The C Programming Language edition 2nd publisher Prentice Hall year 1988 url http cm.bell labs.com cm cs cbook isbn 0 13 110362 8 ref In many programming languages especially statically typed programming language s such as C programming language C , C , Java programming language Java the return type must be explicitly specified when declaring a function. In the Java example source lang java public int someMethod source the return type is Integer computer science int . The program can therefore rely on the method returning a value of type int . Various mechanisms are used for the case where a subroutine does not return any value, e.g., a return type of Void type void is used in some programming languages source lang java public void returnNothing source References Reflist DEFAULTSORT Return Type Category Subroutines ru ...   more details



  1. Call stack

    about the active subroutine s of a computer program . This kind of stack is also known as an execution ... to which each active subroutine should return control when it finishes executing. An active subroutine is one that has been called but is yet to complete execution after which control should ... as a special case , hence the stack structure. If, for example, a subroutine code DrawSquare code calls a subroutine code DrawLine code from four different places, code DrawLine code must know where ... pushes the return address onto the stack, and the called subroutine, when it finishes, Pop .... If a called subroutine calls on to yet another subroutine, it will push another return address ... overflow occurs, generally causing the program to Crash computing crash . Adding a subroutine s entry ... As noted above, the primary purpose of a call stack is Storing the return address When a subroutine ... task has its own stack, and thus the subroutine can be Reentrant subroutine reentrant , that is, can .... Among them can be Local data storage A subroutine frequently needs memory space for storing the values of local variable s, the variables that are known only within the active subroutine and do ... memory allocation heap allocation. Note that each separate activation of a subroutine gets its own ... well as a place for these parameters, especially since each call to a subroutine, which will have differing ... science instance associated with the method to be invoked. Enclosing subroutine context Some programming ... be other machine or software states that need to be restored when a subroutine returns. This might ... containing subroutine state information. Each stack frame corresponds to a call to a subroutine which has not yet terminated with a return. For example, if a subroutine named code DrawLine code is currently running, having been called by a subroutine code DrawSquare code , the top part of the call ... uses. The value is saved upon entry to the subroutine and restored for the return. Having such a field ...   more details



  1. JSR

    JSR may refer to Java Specification Request , in computing Joint spectral radius , in mathematics Jet Set Radio , a video game The Journal of Sex Research Java Specification Request, a proposal made in the Java Community Process John Septimus Roe Anglican Community School also JSRACS Assembly language instruction for jump to subroutine The Journal of Sedimentary Research , published by the Society for Sedimentary Geology SEPM Jonathan s Space Report , an online newsletter tracking worldwide space launches and activities, self published by Harvard Smithsonian Center for Astrophysics Harvard astrophysicist Jonathan McDowell disambig fr JSR it JSR ...   more details



  1. Sub

    Wiktionary sub sub Sub may refer to Submarine Submarine sandwich Subscription Substitute disambiguation Substitute teacher Subtitle captioning Bottom BDSM , also called sub short for submissive Subwoofer loudspeaker Sub TV channel Substitute character , one of the C0 and C1 control codes .sub disambiguation , several file extensions code nowiki sub nowiki code , an HTML tag used to put a character as a subscript SUB Seafarers Union of Burma Summit Bancorp Juanda International Airport in Surabaya, Indonesia See also Subroutine Subscriber Subscript Subeditor Subcontractor Disambiguation cs Sub de Sub eo SUB it SUB nl Sub ja ...   more details



  1. JMNumerics

    Orphan date February 2009 JMNumerics is a commercial library computer science Numerical Library for Microsoft .NET .NET written in C Sharp programming language C . It provides subroutine routines for Linear equation s. Least squares Least squares Solutions of linear system s Eigenvalue problem, Singular value Differential equations Optimization mathematics Optimization . Version History and Current Releases Current versions JMNumerics V 1.1 January 2009 See also List of numerical libraries List of numerical analysis software Category Numerical software Category Windows software ...   more details



  1. Return statement

    by assigning to an identifier that has the same name as the subroutine, a function in Pascal terminology ... of the subroutine. In Python programming language Python , the value code None code is returned when ... null null are returned from the subroutine as elements in an array, or as a single object in the case that only one object has not been captured. In Perl, a return value or values of a subroutine ... any return value at all. A subroutine can check the context using the code wantarray code function ... the use of the explicit return statement except at the textual end of a subroutine, considering that, when ... could be overlooked by a developer, and an action which should be performed at the end of a subroutine ..., GOTO s to the single return point of the subroutine would solve these self induced problems Conversely ...   more details



  1. Autoload

    In computer programming , autoloading is the capability of loading and Linker computing linking portions of a program from mass storage automatically when needed, so that the programmer is not required to define or include those portions of the program explicitly. Many high level programming languages include autoload capabilities, which sacrifice some run time speed for ease of coding and speed of initial compilation linking. Typical autoload systems intercept procedure call s to undefined subroutine s. The autoloader searches through a Path computing path of directories in the computer s file system , to find a file containing source code source or object code object code that defines the subroutine. The autoloader then loads and links the file, and hands control back to the main program so that the subroutine gets executed as if it had already been defined and linked before the call. Many interactive and high level languages operate in this way. For example, IDL includes a primitive path searcher, and Perl allows individual perl module modules to determine how and whether autoloading should occur. The UNIX shell may be said to consist almost entirely of an autoloader program , as its main job is to search a path of directories to load and execute command files. In PHP5 , autoload functionality is triggered when referencing an undefined Class computer programming class . One or more autoload functions implemented as the autoload magic function or any function registered to the Standard PHP Library SPL autoload stack is called and given the opportunity to define the class, usually by loading the file it is defined in. Category programming constructs unreferenced date December 2007 ...   more details



  1. Test suite

    Portal Software Testing In software development , a test suite , less commonly known as a validation suite , is a collection of test case s that are intended to be used to test a software program to show that it has some specified set of behaviours. A test suite often contains detailed instructions or goals for each collection of test cases and information on the system configuration to be used during testing. A group of test cases may also contain prerequisite states or steps, and descriptions of the following tests. Collections of test cases are sometimes incorrectly termed a test plan , a test script , or even a test scenario . Types Occasionally, test suites are used to group similar test cases together. A system might have a smoke test suite that consists only of smoke test s or a test suite for some specific functionality in the system. It may also contain all tests and signify if a test should be used as a smoke test or for some specific functionality. An executable test suite is a test suite that can be executed by a program. This usually means that a test harness , which is integrated with the suite, exists. The test suite and the test harness together can work on a sufficiently detailed level to correctly communicate with the system under test SUT . A test suite for a primality testing subroutine might consist of a list of numbers and their primality prime or composite , along with a testing subroutine. The testing subroutine would supply each number in the list to the primality tester, and verify that the result of each test is correct. External links http www.plumhall.com suites.html The Plum Hall Validation Suite for C C and the C Library , a popular executable Test Suite. See also Scenario test Software testing Test case soft eng stub Category Software testing zh ...   more details



  1. XS (Perl)

    XS is an interface through which a Perl program can call a C programming language C or C language subroutine . The letters stand for eXternal Subroutine, or xsub, where external means external to Perl, i.e. written in some other language. It may be desirable for a Perl program to invoke a C subroutine in order to handle very CPU or RAM memory intensive tasks, to interface with computer hardware hardware or low level system facilities, or to make use of existing C subroutine libraries. The Perl interpreter computing interpreter is a C program, so in principle there is no obstacle to calling from Perl to C. However, the XS interface is complex, and using it requires some understanding of the interpreter. The earliest reference on the subject was the http search.cpan.org dist perl pod perlguts.pod perlguts Plain Old Documentation POD , the word guts suggesting the highly technical nature of the material. Subroutine libraries in Perl are called modules , and modules that contain xsubs are called XS modules . Perl provides a framework for developing, packaging, distributing, and installing modules. To create an XS module, code h2xs code is first used to create an empty module. Next, C subroutines are added, and the calling interfaces to the C subroutines are specified with a specialized glue language also referred to as XS . Finally, the module is compiled, tested, and installed with code make code . Once an XS module is installed, it can be loaded into a Perl program with a code use code statement, like an ordinary Perl module . Once the module is loaded, the C subroutines can be called from Perl code, as if they were written in Perl. XS modules are not without drawbacks. They are difficult to write and maintain, and they may only be installed if a C compiler and the headers that the Perl interpreter were compiled against are available. Also, new versions of Perl may break binary compatibility if this happens, all XS modules must be recompiled. It is also possible to write ...   more details



  1. Caltech Intermediate Form

    figure, and CODE CALL CODE to draw a subroutine of other geometry statements. The control statements are CODE DS CODE to start the definition of a subroutine, CODE DF CODE to finish the definition of a subroutine, CODE DD CODE to delete the definition of subroutines, CODE 0 CODE through CODE ... of distance, unless subroutine scaling is specified described later . The optional rotation ..., a CODE LAYER CODE statement and a CODE BOX CODE statement are packaged into subroutine 4, then the statement C 4 will cause the box to be drawn on that layer. In addition to simply invoking the subroutine, a CODE CALL CODE statement can include transformations to affect the geometry inside the subroutine. Three transformations can be applied to a subroutine in CIF translation, rotation, and mirroring ... will be added to all coordinates in the subroutine, to translate its graphics across the mask ... thumb 262px right FIGURE B.4 The transformations of a CIF call a Subroutine 10 BOX 100 200 50 50 ... finish statements. Arguments to the CODE DS CODE statement are the subroutine number and a subroutine ... for a subroutine consists of a numerator followed by a denominator that will be applied to all values inside the subroutine. This scaling allows large numbers to be expressed with fewer digits and allows ease of rescaling a design. The scale factor cannot be changed for each invocation of the subroutine since it is applied to the definition. As an example, the subroutine of Fig. B.4 can be described ... allows the trailing zero to be dropped from all values inside the subroutine. Arbitrary depth of hierarchy is allowed in CIF subroutines. Forward references are allowed provided that a subroutine ... C 11 DS 11 ... DF is not. This is because the actual invocation of subroutine 11 does not occur ... parameter and deletes every subroutine that has a number greater than or equal to this value. The statement ...   more details




Articles 1 - 25 of 704          Next


Search   in  
Search for Subroutine in Tutorials
Search for Subroutine in Encyclopedia
Search for Subroutine in Videos
Search for Subroutine in Books
Search for Subroutine in Software
Search for Subroutine in DVDs
Search for Subroutine in Store


Advertisement




Subroutine in Encyclopedia
Subroutine top Subroutine

Home - Add TutorGig to Your Site - Disclaimer

©2011-2013 TutorGig.com. All Rights Reserved. Privacy Statement