Repository navigation
AsmFoundation.Sdk 0.1.0
The first release.
Added
-
.asmprojprojects (<Project Sdk="AsmFoundation.Sdk">). NASM sources
become a Linux x86-64 shared library, static library or executable, or just
objects, chosen with the csproj-styleOutputType. -
Two runtimes:
Freestanding(the default): raw system calls, nothing linked;Libc: glibc linked dynamically through a generatedlibc.so.6stub, so
no sysroot is needed. ALibcexecutable starts inmainthrough the
SDK'scrt1.
-
References:
ProjectReferencebetween.asmprojprojects adds the include folders and
links the library;ProjectReferencefrom a.csprojcopies the shared library next to the
program;PackageReferenceto an asm package adds the package's include folders and
library.
-
dotnet packwrites native packages:include/;native/linux-x64/*.a;runtimes/linux-x64/native/*.so;- optional
src/; - generated
build/andbuildTransitive/props.
-
Exact incremental builds: a rebuild without changes starts no tool; an
include file change reassembles the sources that can include it. -
AsmFoundation.Toolchain0.1.0 forwin-x64,linux-x64and
osx-arm64:- NASM 3.02: the official binary on Windows, built from source on Linux
(statically) and on macOS (arm64); - LLVM 23.1.5's
lld,llvm-arandllvm-readobj.
Every download is pinned by SHA-256 and verified before use.
- NASM 3.02: the official binary on Windows, built from source on Linux
-
Samples and an end-to-end test (
tests/run.py) that CI runs on Windows,
Linux and macOS.- It checks every output's ELF properties: type, SONAME,
DT_NEEDED,
interpreter, exports and archive members. - It runs the executables and a C# program that P/Invokes two asm shared
libraries. - It verifies the incremental builds.
- It checks every output's ELF properties: type, SONAME,