@c "options/option-l.texi"
@c extracted from "../../src/main/chpsim.cc"
@c by "$(top_srcdir)/scripts/extract_texinfo.awk".

@cindex module
@cindex loading
@defopt -l lib @r{(repeatable)}
@anchor{option-l}
Load the @var{lib} shared library module for registering user-defined
run-time functions.  
@var{lib} should be named @emph{without} its file extension, 
for the sake of portability.  
@c @var{lib}'s name should match that of the built library's base.
For example, @file{libcrunch.la} should be referenced as @samp{libcrunch}, 
and @file{chewy.so} should be referenced as @samp{chewy}.
The equivalent command in the interpreter is
@ref{command-dlopen,, @command{dlopen}}.
@end defopt

