in reply to Re^6: perl c++ perlembed question
in thread perl c++ perlembed question
I check memory usage with/without loadlibrary call, it doesn't grow.C:\>perl -MDynaLoader -e " warn DynaLoader::dl_load_file($^X); " 4194304 at -e line 1. C:\>perl -MWin32::API -le " warn Win32::API::LoadLibrary($^X)" 4194304 at -e line 1.
Similar idea RFC: Access XS directly without compilation Pure Perl module(245 lines) that calls external libraries - no XS file. Pure Perl module(246 lines, Linux/Win32) that calls external libraries - no XS file.C:\>perl -le" printf q!%x!, 4194304 " 400000 C:\>perl -le " @f = `Listdlls.exe $$`; print @f[8..10]" Base Size Version Path 0x00400000 0xb000 5.08.0009.0825 C:\Perl\bin\perl.exe
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: perl c++ perlembed question
by syphilis (Archbishop) on Jun 28, 2009 at 10:24 UTC |