emmtrix
Edge AI Compiler
(eAI)

emmtrix Edge AI Compiler icon

Generate Verifiable, Target-Optimized C Code from AI Models for Embedded Systems

Your AI model needs to run on embedded hardware with tight memory and execution-time budgets—and fit into your existing software workflow.

The emmtrix Edge AI Compiler converts ONNX and PyTorch models into C code optimized for your target processor. Compile and integrate the generated code using your standard C toolchain, without relying on a large, general-purpose inference runtime.

For ONNX-based workflows, validate the generated code against ONNX Runtime reference results.

From AI Model to Embedded C Code

Code Review and Verification

Generate inspectable C code and validate ONNX-based results against ONNX Runtime. 

Target-Specific Optimization

Optimize generated C for the selected processor and its available hardware capabilities.

Integration into Embedded Workflows

Compile and integrate generated C using existing embedded toolchains.

Adaptable Compiler Workflow

Extend the workflow to additional architectures, accelerators and toolchains on request.

Technical Evidence and Partnerships

ONNX Backend Coverage Scoreboard

emx-onnx-cgen is listed as a tested backend on the official ONNX Backend scoreboard. Results refer to specific software versions and test dates.

Infineon Associated Partner

emmtrix Technologies is an Infineon Associated Partner with over 10 years of experience with the Infineon AURIX™ microcontroller family and active collaboration with Infineon over the past five years.

Referenced embedded AI Project Contexts

Public project contexts around embedded AI deployment, vectorization and performance estimation include CeCaS, StorAIge and NeAIxt.

AI Workflow: From ML Model to Target-Aware C Code

Figure 1: emmtrix Edge AI Compiler Workflow

The workflow supports ONNX models and PyTorch workloads. Models from TensorFlow, Keras, JAX and MATLAB can enter via ONNX export or conversion, subject to model and operator compatibility.

The emmtrix Edge AI Compiler provides an automated, target-aware workflow for deploying trained neural-network models on embedded and edge hardware. Starting from ONNX or PyTorch models, it systematically restructures and optimizes the inference workload for the selected target platform.

The workflow combines memory and data-access optimization, control-flow simplification, loop restructuring, kernel fusion, and automatic vectorization. It can generate target-specific implementations using vector intrinsics and, where available, dedicated accelerators—enabling efficient execution on platforms such as Infineon AURIX™ TC4x with its Parallel Processing Unit (PPU), Arm processors with NEON or SVE, and RISC-V processors with RVV.

The resulting implementation is ready to compile with the target’s standard C toolchain and integrate into established embedded software workflows. Numerical behavior can be validated against ONNX Runtime reference results, supporting a dependable path from trained model to deployed inference application.

For Processor Vendors and Embedded AI Teams

Processor and Chip Vendors

emmtrix can adapt the Edge AI Compiler to a processor architecture, instruction set, accelerator and toolchain. A specific version can be developed as a white-label solution for the vendor’s customers. The scope of target support and integration will be defined together with the customer for each project.

Embedded AI Developers and Development Teams

Teams deploying trained models can use the compiler workflow to generate C code for an embedded target. If the available target support does not cover their hardware or toolchain, emmtrix can offer adaptation services.

Key Features

  • Automatic Model Conversion: Seamless translation of ONNX and PyTorch models into portable C code.
  • Loop Optimization and Kernel Fusion: Loop normalization, fusion and simplified control flow to prepare generated code for downstream optimization.
  • Memory Footprint Reduction: Tensor memory is planned at compile time. A shared memory pool allows memory to be reused when tensors are no longer needed, reducing the required memory where reuse is possible and making tensor memory use predictable during inference.
  • Hardware-Aware Code Generation: Generation of target-specific C code using intrinsics, SIMD capabilities and hardware-specific optimization techniques where applicable.
  • Deterministic Execution: Predictable code generation and execution characteristics designed for embedded deployment workflows.
  • Validation and Verification Support: Validate generated C code against ONNX Runtime reference behavior in ONNX-based workflows. Inspectable C code and reproducible code generation also support review and verification within project-specific safety processes.

Key Benefits

  • Less Manual Optimization Work
    Reduce the effort required to prepare generated C code for a specific embedded processor.
  • Code Built for the Target Platform
    Generate C code tailored to the selected architecture instead of relying only on generic generated code.
  • Fits Existing C Workflows
    Integrate generated code into existing embedded software projects, compiler workflows, and build environments.
  • Less Dependency on Inference Runtimes
    Deploy AI workloads through generated C code instead of making a dedicated inference runtime the central integration layer.
  • A Repeatable Deployment Process
    Apply the same structured workflow from model input to generated target-specific C code across projects.

Typical Embedded AI Use Cases

  • Virtual sensors and soft sensors for automotive and industrial systems
  • AI inference on microcontrollers and edge processors
  • Predictive maintenance and signal classification close to the device

Conference Talk

ONNX Community Meetup 2026

At the ONNX Community Meetup 2026, Dr. Timo Stripf presented lessons learned from building an ahead-of-time ONNX-to-C compiler.

The talk provides technical background on emx-onnx-cgen, the open-source ONNX-to-C compiler used in the emmtrix Edge AI Compiler workflow.

Supported Platforms

The emmtrix Edge AI Compiler workflow supports target-aware code generation and vectorization for a range of embedded and edge architectures.

Currently supported target families include:

Additional architectures can be discussed based on project requirements.

Dive deeper: Learn how emmtrix supports  RISC-V RVV vectorization using the official RISC-V Vector C Intrinsics v1.0.

Infineon logo

AURIX™
(TC4x PPU)

Risc-V logo

RISC-V
(RVV)

arm logo

Cortex-A
(NEON/SVE)

Intel AMD logo

x86
(AVX)

Supported Compilers and Vector Programming Models

Vector instructions are exposed differently across processor families and compilers. A practical vectorization workflow must therefore support different C programming models as well as a broad range of SIMD instruction sets.

The emmtrix Edge AI Compiler workflow supports target-aware C code generation using:

  1. Inline Assembly: For fine-grained hardware control where required.
  2. Platform-Specific Intrinsics: Compiler-provided functions for accessing target-specific vector features.
  3. Compiler-Specific Vector C Extension with Intrinsics: Vector data types and overloaded operators combined with platform-specific intrinsics to balance readability, portability and target-specific optimization.

The workflow supports SIMD vectorization for architectures including x86 with AVX2, Arm with NEON and SVE, and RISC-V with the RISC-V Vector Extension (RVV). Where applicable, it can also use dedicated vector accelerators such as the PPU in Infineon AURIX™ TC4x devices. The workflow typically uses the most abstract suitable programming model to keep the generated code readable while still fitting the target compiler and architecture.

Relevant compiler and environment contexts include TASKING SmartCode, Synopsys ARC MetaWare, GCC Vector Extensions and Clang Vector Extensions.

Evaluate the Edge AI Compiler Workflow

Discuss your model and target platform with our technical team, or download the product flyer for a concise technical overview.

Working on a space application? Explore the Edge AI Compiler workflow for embedded AI deployment in space systems.

Frequently Asked Questions

Which model formats are supported?

The workflow supports ONNX models and PyTorch workloads. Models created with TensorFlow, Keras, JAX or MATLAB can be exported or converted to ONNX using suitable tools. Compatibility depends on the model, exporter, ONNX operators and opset version.

What kind of C code is generated?

The Edge AI Compiler generates target-specific C code for embedded inference. It automatically optimizes ONNX and PyTorch models for memory use, execution flow and the selected hardware. The result can use SIMD instructions, vector extensions or dedicated accelerators, requires no additional software dependencies, and integrates with standard embedded C toolchains.

Does generated C require a large inference runtime?

The workflow is designed to reduce dependency on a large inference runtime as the central deployment layer. Generated C can be integrated into existing C-based embedded software workflows.

Can the generated C code be validated?

Yes. For ONNX-based workflows, generated C can be validated against ONNX Runtime reference behavior. This helps teams compare generated code with expected model behavior before further optimization or deployment.

Which target architectures are referenced?

Currently referenced target families include AURIX TC4x PPU, ARM NEON/SVE, RISC-V Vector Extension and x86 AVX. Other targets can be discussed for evaluation.

Can the compiler be adapted for a new processor architecture?

Yes. emmtrix can assess adaptation to a processor architecture, instruction set, accelerator and target toolchain. The required work and supported features depend on the hardware and the project requirements.

 

Is a white-label solution available for processor vendors?

A target-specific white-label version can be developed for processor vendors that want to provide an AI deployment workflow to their customers. Branding, target support, integration and validation requirements are agreed for the individual project.

 

Which compilers and toolchains are relevant?

Documented compiler and environment contexts include TASKING, Synopsys, GCC, LLVM, simulators, hardware verification and CI-oriented workflows.

Can the generated code be used in model-based development workflows?

The generated C code can be integrated into C-based embedded software workflows and target build environments. For model-based development setups, integration depends on the specific toolchain, simulation environment, and validation requirements. emmtrix can assess the integration path for customer-specific workflows.

emmtrix also has experience with generated C code from Simulink/TargetLink workflows, performance estimation, and target-oriented optimization.

Is the workflow suitable for safety-oriented environments?

The workflow supports generated code that is reproducible, reviewable and suitable for validation against reference behavior. Whether it fits a specific safety process depends on the project, toolchain, validation requirements and qualification context.

What public evidence exists for ONNX compatibility?

emx-onnx-cgen 1.2.2 reached 98.17% ONNX Backend Coverage against ONNX 1.20.1 on the stable-build scoreboard dated 2026-03-25.

What is needed for an evaluation?

A useful evaluation usually only requires the model and the target compiler and access to simulator or hardware environments where applicable.

Technical Wiki and Implementation Details

For implementation-level details, compiler integration guidance, vector programming models and platform-specific background, visit the emmtrix technical wiki.

Discuss Your Model and Target Platform

Tell us your model format, target architecture, compiler/toolchain, and validation requirements. Our technical team can assess whether the Edge AI Compiler workflow fits your deployment scenario and discuss the next steps.

For processor-specific adaptations or white-label solutions, please include your architecture, toolchain, and intended integration.

Cookie Consent with Real Cookie Banner