AaronRobinsonMSFT / AaronRobinsonMSFT/DNNE

Consider using Zig as a C/C++ compiler to enable cross-compilation scenarios

Open
#128 1 comment 2 reactions 0 assignees View on GitHub
enhancement
Dominant language
C#
Stars
488
Forks
46
PR merge metrics
No merged PRs in 30d

Description

I noticed that DNNE doesn't currently support cross-compilation for all the usual reasons that cross-compilation is a nightmare.

The [Zig](https://ziglang.org) compiler supports cross-compilation out of the box across a wide range of platforms, and it contains an embedded Clang along with libc headers and/or sources for many platforms, allowing you to use `zig cc`/`zig c++` as a C/C++ compiler. Cross-compilation basically Just Works. This is one of the reasons I developed my [Zig SDK](https://docs.vezel.dev/zig-sdk) project.

It seems to me that using the Zig compiler as a C/C++ compiler for DNNE would be a ~perfect fit.

(FWIW, if this seems like a sensible thing to do, you could make use of the [Zig toolset packages](https://www.nuget.org/packages?q=vezel.zig.toolsets) I publish on NuGet with every Zig release.)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.