Esempio n. 1
0
                   default=False,
                   cmdline="--vanilla",
                   requires=[("translation.no__thread", True)]),
        BoolOption("no__thread",
                   "don't use __thread for implementing TLS",
                   default=False,
                   cmdline="--no__thread",
                   negation=False),
        StrOption("compilerflags",
                  "Specify flags for the C compiler",
                  cmdline="--cflags"),
        StrOption("linkerflags",
                  "Specify flags for the linker (C backend only)",
                  cmdline="--ldflags"),
        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("simplifying", "Simplify flow graphs", default=True),
        BoolOption("builtins_can_raise_exceptions",
                   "When true, assume any call to a 'simple' builtin such as "
                   "'hex' can raise an arbitrary exception",
                   default=False,
                   cmdline=None),
        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'),
Esempio n. 2
0
        BoolOption("thread",
                   "enable use of threading primitives",
                   default=False,
                   cmdline="--thread",
                   requires=[("translation.gc", "boehm")]),
        BoolOption("verbose", "Print extra information", default=False),
        BoolOption("debug",
                   "Record extra annotation information",
                   cmdline="-d --debug",
                   default=False),
        BoolOption("insist",
                   "Try hard to go on RTyping",
                   default=False,
                   cmdline="--insist"),
        IntOption(
            "withsmallfuncsets",
            "Represent groups of less funtions than this as indices into an array",
            default=0),
        BoolOption("countmallocs",
                   "Count mallocs and frees",
                   default=False,
                   cmdline=None),
        BoolOption("sandbox",
                   "Produce a fully-sandboxed executable",
                   default=False,
                   cmdline="--sandbox",
                   requires=[("translation.thread", False)]),
        BoolOption("rweakref",
                   "The backend supports RPython-level weakrefs",
                   default=True),

        # misc
Esempio n. 3
0
 OptionDescription(
     "std",
     "Standard Object Space Options",
     [
         BoolOption(
             "withtproxy", "support transparent proxies", default=True),
         BoolOption("withsmallint",
                    "use tagged integers",
                    default=False,
                    requires=[("translation.gc", "boehm"),
                              ("objspace.std.withprebuiltint", False)]),
         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("withstrjoin",
                    "use strings optimized for addition",
                    default=False),
         BoolOption("withstrslice",
                    "use strings optimized for slicing",
                    default=False),
         BoolOption("withprebuiltchar",
                    "use prebuilt single-character string objects",
                    default=False),
         BoolOption(
Esempio n. 4
0
              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",