Пример #1
0
void
maybe_cc(rust_task *task) {
    static debug::flag zeal("RUST_CC_ZEAL");
    if (*zeal) {
        do_cc(task);
        return;
    }

    // FIXME: Needs a snapshot.
#if 0
    if (task->cc_counter++ > RUST_CC_FREQUENCY) {
        task->cc_counter = 0;
        do_cc(task);
    }
#endif
}
Пример #2
0
void do_operations (void) {
    if (verbose>=1 || do_print_version) {
	fprintf(stderr, "cilkc %s\n", "$Rev: 2491 $ $Date: 2005-10-07 10:10:47 -0400 (Fri, 07 Oct 2005) $");
    }
    if (do_print_help) {
	print_help();
    }
    if (stop_at==STOP_AT_M) {
	do_M();
    } else {
	do_cpp1();
	if (stop_at==STOP_AT_CILKI) return;
	do_cilk2c();
	if (stop_at==STOP_AT_CILKC) return;
	do_cpp2();
	do_cc();
    }
}