Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

RuSTy Documentation

RuSTy compiles IEC 61131-3 Structured Text into machine code, with LLVM as its back end. The compiler binary is called plc.

This book has two parts. Open the one you need in the sidebar.

  • User Documentation: how to install the compiler, how to use it, and how to write Structured Text for it.
  • Technical Documentation: how the compiler works inside. The stages of the pipeline, the participants that rewrite the program between the stages, the other outputs, and the internals of each language construct.

New to the compiler? Start with Install.