Home About Eric Topics SourceGear

Posts about: .NET Native AOT

The samples from these chapters are available at:

https://github.com/ericsink/native-aot-samples


Wednesday, 18 January 2023

Native AOT Overview

A different approach, where .NET code is compiled Ahead of Time (AOT), directly to native code, skipping the Intermediate Language (IL) step.

Wednesday, 18 January 2023

Libraries

Using Native AOT to build libraries can open many opportunities for interop.

Wednesday, 18 January 2023

Trivial example

A very simplistic C# library, with one function that multiplies two integers

Wednesday, 18 January 2023

Multiplying two integers from Rust

Calling the multiply() function from Rust (Windows, dynamic)

Wednesday, 18 January 2023

Silly

Calling the multiply() function using P/Invoke from C#

Monday, 23 January 2023

Static libraries

Calling the multiply() function in a static library from C++

Wednesday, 25 January 2023

Objects

Using object references across Native AOT