Skip to content

Add zig hello and plasma examples - #5

Merged
mlund merged 2 commits into
MEGA65:mainfrom
kassane:zig-mos
Oct 6, 2026
Merged

mlund merged 2 commits into
MEGA65:mainfrom
kassane:zig-mos

Conversation

@kassane

@kassane kassane commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Goal

Add zig-mos examples (based on zig v0.17.0 final release)

  • zig/hello: pure-zig
  • zig/plasma: FFI between mega65-libc.

plus: CI/CD, like zig-mos-examples

Checklist

Please tick off the following:

  • Project directory name is in small letters and use _ for spaces
  • README.md exists
  • info.json exists
  • You agree to the MIT license of this repository

cc: @mlund @lydon42

// translate-c is the one path that misses the -nostdinc normal C compiles get (src/Compilation.zig), so clang's builtin stdint.h does its hosted #include_next fallback into the HOST glibc headers — /usr/include/stdint.h → features.h → gnu/stubs.h, which has no stubs-32.h on Ubuntu/MacOS CI
@kassane

kassane commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor Author

Note: For use LSP (zls or zigscient), can build from src [tagged] version using zig-mos to allow llvm-mos targets metadata!

@mlund

mlund commented Oct 6, 2026

Copy link
Copy Markdown
Collaborator

Thanks, nice with zig examples!

@mlund
mlund merged commit ef5e47f into MEGA65:main Oct 6, 2026
@kassane
kassane deleted the zig-mos branch October 6, 2026 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants