> For the complete documentation index, see [llms.txt](https://docs.openbrush.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.openbrush.app/developer-notes/github-wiki/burstcompiler.md).

# BurstCompiler

## Overview

* Burst is an LLVM based math-aware backend Compiler Technology. It takes the C# jobs and produces highly-optimized code taking advantage of the particular capabilities of the platform.
* Burst is primarily designed to work efficiently with the Job system.
* Burst is working on a subset of .NET that doesn't allow the usage of any managed objects/reference types in your code (class in C#).
* Supports a [subset of C#](https://docs.unity3d.com/Packages/com.unity.burst@1.2/manual/index.html#cnet-language-support).

## Language Support

Unsupported features:

* Types:
  * `char` (this will be supported in a future release)
  * `string` as this is a managed type
  * `decimal`
* Managed arrays: You should use instead a native container, `NativeArray<T>` for instance.
* `catch`
* `try/finally` (which will come at some point)
* `foreach` as it is requiring try/finally (This should be supported in a future version)
* Storing to static fields except via Shared Static
* Any methods related to managed objects (e.g string methods...etc.)

## Links

* [Burst User Guide](https://docs.unity3d.com/Packages/com.unity.burst@1.2/manual/index.html).
* [Unity.Mathematics](https://docs.unity3d.com/Packages/com.unity.mathematics@1.2/manual/index.html) "A C# math library providing vector types and math functions with a shader like syntax. Used by the Burst compiler to compile C#/IL to highly efficient native code."
* Burst videos:
  * [Unite Austin 2017 - Writing High Performance C# Scripts](https://www.youtube.com/watch?v=tGmnZdY5Y-E\&feature=youtu.be) - Joachim Ante introduction.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.openbrush.app/developer-notes/github-wiki/burstcompiler.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
