Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

What are the .bs files for?

by MrNobo1024 (Hermit)
on Aug 02, 2002 at 02:48 UTC ( #186991=perlquestion: print w/replies, xml ) Need Help??
MrNobo1024 has asked for the wisdom of the Perl Monks concerning the following question:

In the lib/auto subdir of my perl directory, there's a lot of 0-byte .bs files (one for each DLL, like this:)
Directory of C:\perl\lib\auto\Digest\MD5 MD5 DLL 245,767 08-01-02 6:13p MD5.dll MD5 BS 0 08-01-02 6:13p MD5.bs
I know the .dll is the library that gets linked when the module is loaded but what's the .bs file for? Can anyone tell me?

--MrNobo1024
s]]HrLfbfe|EbBibmv]e|s}w}ciZx^RYhL}e^print

Replies are listed 'Best First'.
Re: What are the .bs files for?
by Zaxo (Archbishop) on Aug 02, 2002 at 03:40 UTC

    The .bs extension stands for 'bootstrap'. The file is produced by ExtUtils::Mkbootstrap for the use of DynaLoader. It tells DynaLoader where to find dll's that are not in the system's standard locations.

    After Compline,
    Zaxo

      I would rather say that .bs file may contain additional code which helps to find dll-s in non-standard locations, but may contain some special code (initialize something, for example). DynaLoader checks it's size and, if it's not zero, executes it.

      Courage, the Cowardly Dog.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://186991]
Approved by sm3g
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2017-01-18 23:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (166 votes). Check out past polls.