• OctoMY API
  • OctoMY API Reference
  • C++ Classes
  • OctoMY
  • LlvmCompilerInterface
  • LlvmCompilerInterface Class

    libfirmware's concrete `toolchain::CompilerInterface`. More...

    Header: #include <LlvmCompilerInterface>
    Since: Phase 20c
    Inherits: toolchain::CompilerInterface

    Detailed Description

    Backs `toolchain::ToolchainBootstrapService` with the same vendored LLVM/Clang/lld machinery that `FirmwareCompiler` uses. Installed at startup via `ToolchainBootstrapService::setCompiler(&theInstance)`.

    \parcompileObject **Currently stubbed** — surfaces a clear "not yet implemented" error. Full implementation needs to factor the per-source compile path out of `FirmwareCompiler::compile()` so it can run on individual files rather than whole programs. Tracked as a Phase 20c follow-up.

    \pararchive **Implemented** — writes a standard System V `ar` archive in pure C++. No libllvm dependency for the archive step; the format is a simple text header + per-entry headers + raw contents, well-suited to a small in-tree writer.

    \paridentityBanner Reports the vendored LLVM version + host triple.