diff options
author | Malcolm Beattie <mbeattie@sable.ox.ac.uk> | 1997-06-12 12:34:59 +0000 |
---|---|---|
committer | Malcolm Beattie <mbeattie@sable.ox.ac.uk> | 1997-06-12 12:34:59 +0000 |
commit | 7e68109d262cbf61cb06460e276123fc731cfcb8 (patch) | |
tree | 37e6e76ce595a5ba9a67140b7044d826f431b8a9 /NOTES | |
parent | 87f219289c80e623fc6db87de78ac90c6d95db14 (diff) | |
download | perl-7e68109d262cbf61cb06460e276123fc731cfcb8.tar.gz |
Document -m option of CC backend.
p4raw-id: //depot/perlext/Compiler@29
Diffstat (limited to 'NOTES')
-rw-r--r-- | NOTES | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |