> Agent-readable docs index: /llms.txt. Download /docs.zip to grep all markdown files locally.

---
$schema: https://holocron.so/frontmatter.json
title: License
description: MIT OR Apache-2.0 dual license for the RoboC++ compiler and generated C output.
icon: lucide:scale
---

RoboC++ is **dual-licensed** under either:

* [MIT License](https://github.com/zaidmukaddam/robocpp/blob/main/LICENSE-MIT)
* [Apache License 2.0](https://github.com/zaidmukaddam/robocpp/blob/main/LICENSE-APACHE)

You may use, copy, modify, and distribute the compiler under **either** license, at your option.

## Source code

Every workspace crate inherits **`license = "MIT OR Apache-2.0"`** from the root `Cargo.toml`. Rust sources in the compiler, including `iec_c`, carry:

```text
// SPDX-License-Identifier: MIT OR Apache-2.0
```

## Generated C

`rbcpp build-c` emits a header comment on every generated `.c` file:

```c
/*
 * Generated by RoboC++ (rbcpp).
 * SPDX-License-Identifier: MIT OR Apache-2.0
 *
 * This generated file follows the RoboC++ project license unless the
 * input project or surrounding integration imposes additional terms.
 */
```

Generated C follows the **RoboC++ project license** unless your input project or target integration adds separate terms. If you ship generated scan code in a product, preserve the SPDX notice unless your legal review says otherwise.

See [Targets and Generated C](/targets) for the generated ABI and runtime helpers.

## Documentation site

This documentation site is part of the RoboC++ project repository. Holocron and other frontend dependencies in the docs workspace carry their own licenses in `node_modules`.

## Related

* [Getting started](/getting-started): build prerequisites
* [Architecture](/architecture): crate layout


---

*Powered by [holocron.so](https://holocron.so)*
