llvm-mos / llvm-mos-sdk

SDK for developing with the llvm-mos compiler
https://www.llvm-mos.org
Other
280 stars 56 forks source link

[cx16] Add ZSMKit for music playback #358

Closed mlund closed 3 months ago

mlund commented 3 months ago

It would be useful to include the ZSMKit for ZSM playback on Commander X16. Details of how to use it from e.g. C is detailed on the website and involves a custom linker script.

mysterymath commented 3 months ago

I think this is probably out of scope for the SDK, I'm afraid. We've generally tried to keep the contents similar to what you'd expect from a toolchain: a compiler, linker, standard library and runtimes, and the associated tools needed to analyze binaries or format them such that they can be run on a target system.

The contents of the standard library are accordingly pretty constrained: we broadly aim to only:

  1. Reveal functionality already present in the target, either in hardware or a resident OS, or
  2. Provide standard functionality that is expected to be in libc/libc++, so long as it is relatively straightforward to implement in terms of (1).

This is different; it's something that one might expect to be part of an easy to use platform SDK, but it's probably not a good idea for that SDK to be the llvm-mos-sdk. It's difficult enough with the resources available to keep a handle on our current scope. In the past, we've encouraged development of derived platform-specific SDKs that include llvm-mos-sdk as part of an integrated solution for developing projects.

mlund commented 3 months ago

Thats fair enough. I think the ZSMKit is mostly written in assembler and wouldn't use much of what is in the SDK today. Let's see where it takes us, and if anything needs to be expanded in the SDK to accommodate the library.