Search code examples
compilationred-lang

Compiling Red: Get Red/System Code


The video about Red and Red/System shows the compilation process in which Red is compiled to Red/System.

Youtube: https://youtu.be/-KqNO_sDqm4?t=27m12s

I know how to compile Red code with the -c option. Is there a way to output the Red/System code that is created during the compilation process?


Solution

  • The README mentions --red-only, and says:

    "Stop just after Red-level compilation. Use higher verbose level to see compiler output. (internal debugging purpose)"

    According to @jck this also requires -c for compiling and verbosity level 1:

    ./red -c --red-only -v 1