- Autoload
In the context of computer programming, autoload is the capability of loading and 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 somerun-time speed for ease of coding and speed of initial compilation/linking.Typical autoload systems intercept
procedure call s to undefinedsubroutine s. The autoloader searches through a path of directories in the computer'sfile system , to find a file containing source or 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, andPerl allows individual modules to determine how and whether autoloading should occur. TheUNIX shell may be said to consist almost entirely of anautoloader (program) , as its main job is to search a path of directories to load and execute command files.
Wikimedia Foundation. 2010.