Release mode

When development and testing are finished, and you are ready to deploy to production, you'll want to compile your code to one standalone executable that includes libRedRT and all other needed dependencies. This is done with the red -r hello-world.red command, forcing release mode with the -r flag. Here you see screen output from a compilation on Windows:

The compilation time is a lot longer in this mode, but you'll need to do it only once. The resulting binary size is somewhat increased (it contains the runtime and makes additional runtime functions available), but still quite small. To deploy, you only have to copy the resulting ...

Get Learn Red - Fundamentals of Red now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.