Code Generation (compiler) - Runtime Code Generation

Runtime Code Generation

When code generation occurs at runtime, as in just-in-time compilation (JIT), it is important that the entire process be efficient with respect to space and time. For example, when regular expressions are interpreted and used to generate code at runtime, a non-determistic finite state machine is often generated instead of a deterministic one, because usually the former can be created more quickly and occupies less memory space than the latter. Despite its generally generating less efficient code, JIT code generation can take advantage of profiling information that is available only at runtime.

Read more about this topic:  Code Generation (compiler)

Famous quotes containing the words code and/or generation:

    Acknowledge your will and speak to us all, “This alone is what I will to be!” Hang your own penal code up above you: we want to be its enforcers!
    Friedrich Nietzsche (1844–1900)

    Doubtless, we are as slow to conceive of Paradise as of Heaven, of a perfect natural as of a perfect spiritual world. We see how past ages have loitered and erred. “Is perhaps our generation free from irrationality and error? Have we perhaps reached now the summit of human wisdom, and need no more to look out for mental or physical improvement?” Undoubtedly, we are never so visionary as to be prepared for what the next hour may bring forth.
    Henry David Thoreau (1817–1862)