From: Malcolm Beattie Date: Thu, 12 Jun 1997 12:34:59 +0000 (+0000) Subject: Document -m option of CC backend. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7e68109d262cbf61cb06460e276123fc731cfcb8;p=p5sagit%2Fp5-mst-13.2.git Document -m option of CC backend. p4raw-id: //depot/perlext/Compiler@29 --- diff --git a/NOTES b/NOTES index 52910d2..c1ddbc6 100644 --- a/NOTES +++ b/NOTES @@ -46,6 +46,11 @@ CC backend invocation foo which you initialise with $SIG{BAR} = "foo". A better fix, though, is just to change it to $SIG{BAR} = \&foo. You can have multiple -u options. + -mModulename Instead of generating source for a runnable executable, + generate source for an XSUB module. The + boot_Modulename function (which DynaLoader can look + for) does the appropriate initialisation and runs the + main part of the Perl source that is being compiled. -D Debug options (concat or separate flags like perl -D) r Writes debugging output to STDERR just as it's about to write to the program's runtime (otherwise writes @@ -83,6 +88,9 @@ Example perl -MO=CC,-O2,-ofoo.c foo.pl perl cc_harness -o foo foo.c + perl -MO=CC,-mFoo,-oFoo.c Foo.pm + perl cc_harness -shared -c -o Foo.so Foo.c + Bytecode backend invocation