manku has asked for the wisdom of the Perl Monks concerning the following question:
Hi All,
I am new to Perl and experimenting static linking of modules in Perl. I have compiled a Perl without support for dynamic loading.
Normally I link any modules using xs_init call. Say If I were to load a module Filter::Util::Call, I will create a entry within xs_init function, which in turn is passed as argument to perl_parse.
xs_init(pTHX) { char *file = __FILE__; dXSUB_SYS; newXS("Filter::Util::Call::bootstrap", boot_Filter__Util__Call,file); }
PerlInterpreter *my_perl; #allocate memory for my_perl, construct my_perl, system initialization + ... perl_parse(my_perl, xs_init, argc, args, loc_environ);
Now I am trying to use DB_File module. Seems like DB_File depends on AUTOLOAD. Is there a way where can I statically load DB_File module as shown above. Or am I missing something about DB_File.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Static linking of DB_File
by Anonymous Monk on Jun 07, 2011 at 01:30 UTC | |
by manku (Initiate) on Jun 08, 2011 at 22:01 UTC | |
by Anonymous Monk on Jun 20, 2011 at 06:30 UTC |