Our shopping cart web page invokes a huge perl cgi file (4500 lines)and takes around 20 seconds reponse time. Half of the time is perl compile and require time. We try to use B:CC backbone to compile perl into c executable to save some compile time. We are running perl5.6 on VMS-AXP7.21 and web server: OSU/3.8;UCX. Our simple test shows error if we have "use" statement in the perl code. We managed to generate c file from the perl file, but the c file has two kinds major warnings at compile time. One is unreachable code. Another one is uninitialized variable. The executable shows memory access error.
Details:
1)
#dumper.pl
use Data::Dumper;
print "Hello world\n";
2) $perl -M"O=CC",-odumper.c dumpler.pl
3) $CC/DECC /INCLUDE=PERL_ROOT:[LIB.VMS_AXP.5_6_0.CORE]/Standard=Relax
+ed_ANSI/Prefix=All/Obj=.obj/NoList/NOANSI_ALIA dumper.c
message examples:
lab_644d60:
..^
%CC-I-UNREACH, code can never be executed at label lab_644d60
at line number 21476 in file SYS$SYSDEVICE:[DYWWW.TEST]DUMPER.C;1
MAYBE_TAINT_SASSIGN_SRC(sv);
........^
%CC-W-UNINIT1, The scalar variable "left" is fetched but not
initialized.
at line number 21415 in file SYS$SYSDEVICE:[DYWWW.TEST]DUMPER.C;1
4>run time error:
!!$ run dumper.exe
%SYSTEM-F-ACCVIO, access violation, reason mask=00, virtual
address=0000000000000000, PC=0000000000000000, PS=0000001B
%TRACE-F-TRACEBACK, symbolic stack dump follows
image module routine line rel PC
abs PC
0 0000000000000000
0000000000000000
DUMPER DUMPER main 70561 000000000005B0D0
000000000009B0D0
DUMPER DUMPER __main 0 0000000000000070
0000000000040070
Edit 2001-03-21 by tye to wrap long text
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.