kassane / kassane/zig-mos-examples

c64 plasma example crashes in VICE

Open
#10 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Zig
Stars
12
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Hi,

I was able to compile and execute the C code for the plasma example using the release from https://github.com/llvm-mos/llvm-mos-sdk/releases/latest/download/llvm-mos-linux.tar.xz (SDK v23.0.1) on VICE 3.9 successfully. I compiled the code on windows WSL and tested on VICE on windows.

However, when I tried to repeat the process using zig (https://github.com/kassane/zig-mos-bootstrap/releases 0.17.0-dev), the program crashes. I can't tell if the error is due to code generation or a bug in the code.

Image

Thanks,

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the c64 plasma example with zig-mos-bootstrap 0.17.0-dev and VICE 3.9, then compare it with the successful llvm-mos-sdk v23.0.1 release build. Determine whether the crash comes from Zig/LLVM-MOS code generation or the example code, and document the confirmed cause and reproduction details.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, zig
Domain
embedded-iot
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.