示例#1
0
            "Honor the __builtins__ key of a module dictionary",
            default=False),
 BoolOption("disable_call_speedhacks",
            "make sure that all calls go through space.call_args",
            default=False),
 OptionDescription(
     "std",
     "Standard Object Space Options",
     [
         BoolOption(
             "withtproxy", "support transparent proxies", default=True),
         BoolOption("withprebuiltint",
                    "prebuild commonly used int objects",
                    default=False),
         IntOption("prebuiltintfrom",
                   "lowest integer which is prebuilt",
                   default=-5,
                   cmdline="--prebuiltintfrom"),
         IntOption("prebuiltintto",
                   "highest integer which is prebuilt",
                   default=100,
                   cmdline="--prebuiltintto"),
         BoolOption("withsmalllong",
                    "use a version of 'long' in a C long long",
                    default=False),
         BoolOption("withstrbuf",
                    "use strings optimized for addition (ver 2)",
                    default=False),
         BoolOption("withprebuiltchar",
                    "use prebuilt single-character string objects",
                    default=False),
         BoolOption(
示例#2
0
            cmdline="--entrypoints",
            default="main"),
        BoolOption("dump_static_data_info",
                   "Dump static data info",
                   cmdline="--dump_static_data_info",
                   default=False,
                   requires=[("translation.backend", "c")]),

        # portability options
        BoolOption("no__thread",
                   "don't use __thread for implementing TLS",
                   default=not SUPPORT__THREAD,
                   cmdline="--no__thread",
                   negation=False),
        IntOption("make_jobs", "Specify -j argument to make for compilation"
                  " (C backend only)",
                  cmdline="--make-jobs",
                  default=detect_number_of_processors()),

        # Flags of the TranslationContext:
        BoolOption("list_comprehension_operations",
                   "When true, look for and special-case the sequence of "
                   "operations that results from a list comprehension and "
                   "attempt to pre-allocate the list",
                   default=False,
                   cmdline='--listcompr'),
        IntOption(
            "withsmallfuncsets",
            "Represent groups of less funtions than this as indices into an array",
            default=0),
        BoolOption("taggedpointers",
                   "When true, enable the use of tagged pointers. "
示例#3
0
文件: translate.py 项目: sbw111/lab4
              cmdline="--opt -O"),
 BoolOption("profile",
            "cProfile (to debug the speed of the translation process)",
            default=False,
            cmdline="--profile"),
 BoolOption("pdb",
            "Always run pdb even if the translation succeeds",
            default=False,
            cmdline="--pdb"),
 BoolOption("batch",
            "Don't run interactive helpers",
            default=False,
            cmdline="--batch",
            negation=False),
 IntOption("huge", "Threshold in the number of functions after which "
           "a local call graph and not a full one is displayed",
           default=100,
           cmdline="--huge"),
 BoolOption("view",
            "Start the pygame viewer",
            default=False,
            cmdline="--view",
            negation=False),
 BoolOption("help",
            "show this help message and exit",
            default=False,
            cmdline="-h --help",
            negation=False),
 BoolOption("fullhelp",
            "show full help message and exit",
            default=False,
            cmdline="--full-help",