亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? cc.pm

?? ARM上的如果你對底層感興趣
?? PM
?? 第 1 頁 / 共 4 頁
字號:
    #warn "compile_bblock: ", peekop($op), "\n"; # debug
    write_label($op);
    $know_op = 0;
    do {
	$op = compile_op($op);
    } while (defined($op) && $$op && !exists($leaders->{$$op}));
    write_back_stack(); # boo hoo: big loss
    reload_lexicals();
    return $op;
}

sub cc {
    my ($name, $root, $start, @padlist) = @_;
    my $op;
    init_pp($name);
    load_pad(@padlist);
    B::Pseudoreg->new_scope;
    @cxstack = ();
    if ($debug_timings) {
	warn sprintf("Basic block analysis at %s\n", timing_info);
    }
    $leaders = find_leaders($root, $start);
    @bblock_todo = ($start, values %$leaders);
    if ($debug_timings) {
	warn sprintf("Compilation at %s\n", timing_info);
    }
    while (@bblock_todo) {
	$op = shift @bblock_todo;
	#warn sprintf("Considering basic block %s\n", peekop($op)); # debug
	next if !defined($op) || !$$op || $done{$$op};
	#warn "...compiling it\n"; # debug
	do {
	    $done{$$op} = 1;
	    $op = compile_bblock($op);
	    if ($need_freetmps && $freetmps_each_bblock) {
		runtime("FREETMPS;");
		$need_freetmps = 0;
	    }
	} while defined($op) && $$op && !$done{$$op};
	if ($need_freetmps && $freetmps_each_loop) {
	    runtime("FREETMPS;");
	    $need_freetmps = 0;
	}
	if (!$$op) {
	    runtime("PUTBACK;", "return 0;");
	} elsif ($done{$$op}) {
	    runtime(sprintf("goto %s;", label($op)));
	}
    }
    if ($debug_timings) {
	warn sprintf("Saving runtime at %s\n", timing_info);
    }
    save_runtime();
}

sub cc_recurse {
    my $ccinfo;
    my $start;
    $start = cc_queue(@_) if @_;
    while ($ccinfo = shift @cc_todo) {
	cc(@$ccinfo);
    }
    return $start;
}    

sub cc_obj {
    my ($name, $cvref) = @_;
    my $cv = svref_2object($cvref);
    my @padlist = $cv->PADLIST->ARRAY;
    my $curpad_sym = $padlist[1]->save;
    cc_recurse($name, $cv->ROOT, $cv->START, @padlist);
}

sub cc_main {
    my @comppadlist = comppadlist->ARRAY;
    my $curpad_sym = $comppadlist[1]->save;
    my $start = cc_recurse("pp_main", main_root, main_start, @comppadlist);
    save_unused_subs(@unused_sub_packages);
    cc_recurse();

    return if $errors;
    if (!defined($module)) {
	$init->add(sprintf("PL_main_root = s\\_%x;", ${main_root()}),
		   "PL_main_start = $start;",
		   "PL_curpad = AvARRAY($curpad_sym);");
    }
    output_boilerplate();
    print "\n";
    output_all("perl_init");
    output_runtime();
    print "\n";
    output_main();
    if (defined($module)) {
	my $cmodule = $module;
	$cmodule =~ s/::/__/g;
	print <<"EOT";

#include "XSUB.h"
XS(boot_$cmodule)
{
    dXSARGS;
    perl_init();
    ENTER;
    SAVETMPS;
    SAVESPTR(PL_curpad);
    SAVESPTR(PL_op);
    PL_curpad = AvARRAY($curpad_sym);
    PL_op = $start;
    pp_main(ARGS);
    FREETMPS;
    LEAVE;
    ST(0) = &PL_sv_yes;
    XSRETURN(1);
}
EOT
    }
    if ($debug_timings) {
	warn sprintf("Done at %s\n", timing_info);
    }
}

sub compile {
    my @options = @_;
    my ($option, $opt, $arg);
  OPTION:
    while ($option = shift @options) {
	if ($option =~ /^-(.)(.*)/) {
	    $opt = $1;
	    $arg = $2;
	} else {
	    unshift @options, $option;
	    last OPTION;
	}
	if ($opt eq "-" && $arg eq "-") {
	    shift @options;
	    last OPTION;
	} elsif ($opt eq "o") {
	    $arg ||= shift @options;
	    open(STDOUT, ">$arg") or return "open '>$arg': $!\n";
	} elsif ($opt eq "n") {
	    $arg ||= shift @options;
	    $module_name = $arg;
	} elsif ($opt eq "u") {
	    $arg ||= shift @options;
	    push(@unused_sub_packages, $arg);
	} elsif ($opt eq "f") {
	    $arg ||= shift @options;
	    my $value = $arg !~ s/^no-//;
	    $arg =~ s/-/_/g;
	    my $ref = $optimise{$arg};
	    if (defined($ref)) {
		$$ref = $value;
	    } else {
		warn qq(ignoring unknown optimisation option "$arg"\n);
	    }
	} elsif ($opt eq "O") {
	    $arg = 1 if $arg eq "";
	    my $ref;
	    foreach $ref (values %optimise) {
		$$ref = 0;
	    }
	    if ($arg >= 2) {
		$freetmps_each_loop = 1;
	    }
	    if ($arg >= 1) {
		$freetmps_each_bblock = 1 unless $freetmps_each_loop;
	    }
	} elsif ($opt eq "m") {
	    $arg ||= shift @options;
	    $module = $arg;
	    push(@unused_sub_packages, $arg);
	} elsif ($opt eq "p") {
	    $arg ||= shift @options;
	    $patchlevel = $arg;
	} elsif ($opt eq "D") {
            $arg ||= shift @options;
	    foreach $arg (split(//, $arg)) {
		if ($arg eq "o") {
		    B->debug(1);
		} elsif ($arg eq "O") {
		    $debug_op = 1;
		} elsif ($arg eq "s") {
		    $debug_stack = 1;
		} elsif ($arg eq "c") {
		    $debug_cxstack = 1;
		} elsif ($arg eq "p") {
		    $debug_pad = 1;
		} elsif ($arg eq "r") {
		    $debug_runtime = 1;
		} elsif ($arg eq "S") {
		    $debug_shadow = 1;
		} elsif ($arg eq "q") {
		    $debug_queue = 1;
		} elsif ($arg eq "l") {
		    $debug_lineno = 1;
		} elsif ($arg eq "t") {
		    $debug_timings = 1;
		}
	    }
	}
    }
    init_sections();
    $init = B::Section->get("init");
    $decl = B::Section->get("decl");

    if (@options) {
	return sub {
	    my ($objname, $ppname);
	    foreach $objname (@options) {
		$objname = "main::$objname" unless $objname =~ /::/;
		($ppname = $objname) =~ s/^.*?:://;
		eval "cc_obj(qq(pp_sub_$ppname), \\&$objname)";
		die "cc_obj(qq(pp_sub_$ppname, \\&$objname) failed: $@" if $@;
		return if $errors;
	    }
	    output_boilerplate();
	    print "\n";
	    output_all($module_name || "init_module");
	    output_runtime();
	}
    } else {
	return sub { cc_main() };
    }
}

1;

__END__

=head1 NAME

B::CC - Perl compiler's optimized C translation backend

=head1 SYNOPSIS

	perl -MO=CC[,OPTIONS] foo.pl

=head1 DESCRIPTION

This compiler backend takes Perl source and generates C source code
corresponding to the flow of your program. In other words, this
backend is somewhat a "real" compiler in the sense that many people
think about compilers. Note however that, currently, it is a very
poor compiler in that although it generates (mostly, or at least
sometimes) correct code, it performs relatively few optimisations.
This will change as the compiler develops. The result is that
running an executable compiled with this backend may start up more
quickly than running the original Perl program (a feature shared
by the B<C> compiler backend--see F<B::C>) and may also execute
slightly faster. This is by no means a good optimising compiler--yet.

=head1 OPTIONS

If there are any non-option arguments, they are taken to be
names of objects to be saved (probably doesn't work properly yet).
Without extra arguments, it saves the main program.

=over 4

=item B<-ofilename>

Output to filename instead of STDOUT

=item B<-v>

Verbose compilation (currently gives a few compilation statistics).

=item B<-->

Force end of options

=item B<-uPackname>

Force apparently unused subs from package Packname to be compiled.
This allows programs to use eval "foo()" even when sub foo is never
seen to be used at compile time. The down side is that any subs which
really are never used also have code generated. This option is
necessary, for example, if you have a signal handler foo which you
initialise with C<$SIG{BAR} = "foo">.  A better fix, though, is just
to change it to C<$SIG{BAR} = \&foo>. You can have multiple B<-u>
options. The compiler tries to figure out which packages may possibly
have subs in which need compiling but the current version doesn't do
it very well. In particular, it is confused by nested packages (i.e.
of the form C<A::B>) where package C<A> does not contain any subs.

=item B<-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.


=item B<-D>

Debug options (concatenated or separate flags like C<perl -D>).

=item B<-Dr>

Writes debugging output to STDERR just as it's about to write to the
program's runtime (otherwise writes debugging info as comments in
its C output).

=item B<-DO>

Outputs each OP as it's compiled

=item B<-Ds>

Outputs the contents of the shadow stack at each OP

=item B<-Dp>

Outputs the contents of the shadow pad of lexicals as it's loaded for
each sub or the main program.

=item B<-Dq>

Outputs the name of each fake PP function in the queue as it's about
to process it.

=item B<-Dl>

Output the filename and line number of each original line of Perl
code as it's processed (C<pp_nextstate>).

=item B<-Dt>

Outputs timing information of compilation stages.

=item B<-f>

Force optimisations on or off one at a time.

=item B<-ffreetmps-each-bblock>

Delays FREETMPS from the end of each statement to the end of the each
basic block.

=item B<-ffreetmps-each-loop>

Delays FREETMPS from the end of each statement to the end of the group
of basic blocks forming a loop. At most one of the freetmps-each-*
options can be used.

=item B<-fomit-taint>

Omits generating code for handling perl's tainting mechanism.

=item B<-On>

Optimisation level (n = 0, 1, 2, ...). B<-O> means B<-O1>.
Currently, B<-O1> sets B<-ffreetmps-each-bblock> and B<-O2>
sets B<-ffreetmps-each-loop>.

=back

=head1 EXAMPLES

        perl -MO=CC,-O2,-ofoo.c foo.pl
        perl cc_harness -o foo foo.c

Note that C<cc_harness> lives in the C<B> subdirectory of your perl
library directory. The utility called C<perlcc> may also be used to
help make use of this compiler.

        perl -MO=CC,-mFoo,-oFoo.c Foo.pm
        perl cc_harness -shared -c -o Foo.so Foo.c

=head1 BUGS

Plenty. Current status: experimental.

=head1 DIFFERENCES

These aren't really bugs but they are constructs which are heavily
tied to perl's compile-and-go implementation and with which this
compiler backend cannot cope.

=head2 Loops

Standard perl calculates the target of "next", "last", and "redo"
at run-time. The compiler calculates the targets at compile-time.
For example, the program

    sub skip_on_odd { next NUMBER if $_[0] % 2 }
    NUMBER: for ($i = 0; $i < 5; $i++) {
        skip_on_odd($i);
        print $i;
    }

produces the output

    024

with standard perl but gives a compile-time error with the compiler.

=head2 Context of ".."

The context (scalar or array) of the ".." operator determines whether
it behaves as a range or a flip/flop. Standard perl delays until
runtime the decision of which context it is in but the compiler needs
to know the context at compile-time. For example,

    @a = (4,6,1,0,0,1);
    sub range { (shift @a)..(shift @a) }
    print range();
    while (@a) { print scalar(range()) }

generates the output

    456123E0

with standard Perl but gives a compile-time error with compiled Perl.

=head2 Arithmetic

Compiled Perl programs use native C arithemtic much more frequently
than standard perl. Operations on large numbers or on boundary
cases may produce different behaviour.

=head2 Deprecated features

Features of standard perl such as C<$[> which have been deprecated
in standard perl since Perl5 was released have not been implemented
in the compiler.

=head1 AUTHOR

Malcolm Beattie, C<mbeattie@sable.ox.ac.uk>

=cut

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
天天综合色天天综合色h| 国产精品久久久久久久午夜片| 亚洲在线观看免费| 欧美日韩一区二区三区视频| 一区二区三区国产| 日韩一区二区精品葵司在线| 亚洲mv在线观看| 欧美大尺度电影在线| 激情丁香综合五月| 国产精品久久久久影视| 在线欧美日韩精品| 免费在线观看一区| 国产精品丝袜一区| 欧美色图激情小说| 国产一区二区三区不卡在线观看 | 欧美日韩五月天| 青草av.久久免费一区| 久久影院电视剧免费观看| 成人性生交大片免费看在线播放 | 国产成人av电影| 亚洲精选一二三| 日韩三级高清在线| 国产91丝袜在线观看| 午夜日韩在线电影| 国产亚洲精品资源在线26u| 在线一区二区三区| 精品一区二区三区免费| 亚洲日本欧美天堂| 欧美成人一级视频| 欧美伊人久久久久久久久影院| 狠狠网亚洲精品| 一区二区三区日韩精品视频| www久久久久| 欧美日韩性生活| 丁香婷婷综合色啪| 免费高清在线一区| 亚洲自拍偷拍欧美| 国产精品私人影院| 欧美不卡一二三| 欧美亚洲自拍偷拍| aa级大片欧美| 国产成人8x视频一区二区| 免费三级欧美电影| 亚洲主播在线播放| 自拍偷拍亚洲综合| 国产日韩综合av| 日韩欧美久久一区| 欧美日韩国产综合一区二区| 成人动漫av在线| 韩国女主播一区| 久久精品免费观看| 偷窥少妇高潮呻吟av久久免费| 中文字幕一区二区三区在线播放| 精品99999| 欧美丰满少妇xxxxx高潮对白| 91美女福利视频| 成人福利视频在线看| 国产在线视视频有精品| 免费成人深夜小野草| 亚洲国产一区视频| 洋洋成人永久网站入口| 亚洲欧洲日产国产综合网| 国产欧美1区2区3区| 26uuu另类欧美亚洲曰本| 日韩欧美三级在线| 精品理论电影在线观看| 欧美一卡二卡在线| 欧美一区二区福利在线| 日韩一卡二卡三卡四卡| 日韩欧美中文一区二区| 日韩午夜电影av| 日韩精品一区二区在线| 欧美r级电影在线观看| 日韩精品中文字幕一区| 337p日本欧洲亚洲大胆色噜噜| 日韩一区二区三区四区五区六区| 欧美一三区三区四区免费在线看| 欧美精品日韩一区| 日韩一区二区在线播放| 欧美精品一区二区三区视频| 精品国产一区二区精华| 久久久久国产精品厨房| 亚洲国产精品v| 亚洲欧美日韩电影| 亚洲国产精品麻豆| 日韩不卡手机在线v区| 久久精品国产久精国产爱| 久久丁香综合五月国产三级网站| 麻豆91免费观看| 国产老女人精品毛片久久| 成人教育av在线| 91视频免费观看| 欧美精品日韩精品| 久久新电视剧免费观看| 中文字幕亚洲不卡| 亚洲高清一区二区三区| 日本欧美久久久久免费播放网| 精品一区二区三区久久| www.亚洲激情.com| 欧美日韩国产天堂| 久久综合九色综合97婷婷| 国产精品麻豆一区二区| 亚洲一区二区在线视频| 日韩有码一区二区三区| 韩国成人在线视频| 色欧美乱欧美15图片| 欧美一三区三区四区免费在线看| 久久青草欧美一区二区三区| 亚洲欧美日韩国产综合在线| 日本最新不卡在线| 99久久伊人网影院| 91精品国产欧美一区二区18| 国产欧美一区二区在线观看| 一区二区三区国产精华| 黄页视频在线91| 欧美性生活大片视频| 久久影院视频免费| 亚洲成年人网站在线观看| 国产精品自拍三区| 欧美日韩一区二区欧美激情| 国产女人18水真多18精品一级做| 亚洲国产另类av| 成人一区二区视频| 欧美一级电影网站| 亚洲伦理在线精品| 国产精选一区二区三区| 欧美色综合网站| 国产欧美一区二区三区网站| 亚洲成人自拍偷拍| jlzzjlzz欧美大全| 久久综合久色欧美综合狠狠| 午夜精品久久久久久| 成年人国产精品| 日韩欧美一区二区三区在线| 亚洲午夜电影在线| av在线综合网| 国产欧美日韩在线| 精品一区二区免费| 91精品国产一区二区| 亚洲综合免费观看高清完整版| 成人黄色在线视频| 久久精品人人做人人综合 | 一区二区三区中文在线观看| 国产精品99久久久| 日韩欧美国产麻豆| 日本欧美韩国一区三区| 欧美又粗又大又爽| 日韩美女视频19| 成人免费观看av| 中文字幕不卡三区| 成人一区在线看| 国产精品午夜在线| 成人国产精品免费| 国产精品美女一区二区在线观看| 国产一区视频网站| 久久综合资源网| 国产精品综合网| 国产视频一区二区三区在线观看| 久久电影网电视剧免费观看| 欧美v亚洲v综合ⅴ国产v| 麻豆一区二区在线| 精品国产精品一区二区夜夜嗨| 日本欧美加勒比视频| 日韩一区二区免费在线电影| 日韩电影一区二区三区| 欧美一二三区精品| 国内久久婷婷综合| 国产亚洲综合在线| 国产成人8x视频一区二区| 欧美激情在线看| 成人福利视频在线| 一区二区在线观看免费视频播放 | 粉嫩av一区二区三区粉嫩| 国产亚洲欧美日韩在线一区| 国产91丝袜在线播放九色| 中文欧美字幕免费| 91欧美一区二区| 亚洲成人精品一区| 精品久久久久香蕉网| 国产精品 欧美精品| 中文字幕在线一区| 日本久久电影网| 日本伊人色综合网| 久久久国产一区二区三区四区小说 | 欧美日韩中文另类| 免费视频最近日韩| 国产女同性恋一区二区| 欧洲视频一区二区| 蓝色福利精品导航| 国产精品毛片a∨一区二区三区| 99re这里只有精品视频首页| 亚洲欧美国产77777| 欧美一区二区视频网站| 国产98色在线|日韩| 亚洲国产你懂的| 久久久久国产精品人| 91黄色免费版| 久久疯狂做爰流白浆xx| 亚洲欧美日韩国产一区二区三区| 欧美一区二区成人6969|