DOS64 application SDK - API 14 / runtime 1.0
Built from the current local SDK sources on 2026-11-17.

Reference: https://bmetal.recone.org/sdk
System image: https://bmetal.recone.org/download

Contents
  include/                 All 12 public API and helper headers
  lib/libbmetal.dll.a       MinGW import library
  lib/dos64_startup.o       PE entry adapter
  bin/bmetal.dll           Windows test-host runtime
  bin/hello.exe            Compiled example
  hello.c                  Example application source
  startup.c                Entry adapter source

This package contains public SDK interfaces and application startup/example
code, not OS/kernel implementation sources, a compiler, or a disk image.
Requires x86-64 MinGW-w64 GCC. From this extracted directory:

x86_64-w64-mingw32-gcc -m64 -O2 -Wall -Wextra -Werror \
  -ffreestanding -nostdlib -nostartfiles -fno-stack-protector -mno-red-zone \
  -Iinclude -Wl,-e,dos64_entry -Wl,--subsystem,console -Wl,--dynamicbase \
  hello.c lib/dos64_startup.o -Llib -lbmetal -o bin/hello.exe

Keep the dos64_entry linker entry point and startup object. Applications
implement int __attribute__((ms_abi)) start(const DOS64_API *Api).
Do not also define dos64_entry when linking the startup object.

On DOS64, copy hello.exe to a data volume while the VM is stopped, then run:
  C:\HELLO.EXE sdk-test
Expected output includes:
  HELLO FROM THE DOS64 SDK
  ARGS: sdk-test

DOS64 resolves the supported bmetal runtime imports through its kernel.
On Windows, keep bmetal.dll beside hello.exe. Native Linux does not run this
PE executable directly. These are DOS64 applications in PE format, not
arbitrary Windows programs.
GUI-subsystem DOS64 applications show a bMETAL logo and Windows/runtime system
summary for three seconds before starting. Console-subsystem apps and DOS64
execution are unchanged.

API 14 and runtime 1.0 match the public image header contract. Check service
availability and function return values. DOS64 applications run in ring 0
without isolation; test only with disposable data and trusted programs.
