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

4.4 Backend Selection

The hosted and native command-line compilers include source/variable debug metadata by default. --no-debug-info skips that metadata without changing program evaluation, compile diagnostics, or __breakpoint__() instructions. Dewy's ordinary compilation uses this option for generated µDewy; dewy debug keeps the metadata and source mappings.

The target backend is selected at compile time via the --target flag:

python -m udewy.p0 --target <backend> program.udewy

Available backends are documented in the addendums. New backends can be added by implementing the backend protocol defined in backend/common.py.