Up Prev Next
From: Michael Peppler <mpeppler at MBAY dot NET>
Subject: Re: dynamic link and static link
Date: Jan 28 1998 7:16PM
Jun Zhang wrote:
> About dynamic link and static link:
> My understanding is:
> Static link: executable file: sybperl is generated. In script first line
> is: #/usr/local/bin/sybperl
> Dynamic link:
> Sybperl.pm is generated. In script first line is
> What about all other .pm files, like Ctlib.pm and Dblib.pm etc...
The sybperl modules have two parts. One is a C code portion that
calls the Sybase API. The other is a perl portion (DBlib.pm, etc)
that adds certain portions that are better done in perl than in C.
The C portion (DBlib.xs, CTlib.xs) gets compiled and can be
dynamically loaded by perl at run time (dynamic link) or
statically linked into a new perl executable. This new executable
does not necessarily have to be called 'sybperl'. This new
executable still needs access to all the .pm files in the sybperl
distribution to work.
Michael Peppler -||- Data Migrations Inc.
firstname.lastname@example.org -||- http://www.mbay.net/~mpeppler