llvm-mos / llvm-mos-sdk

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

add all remaining rp6502 OS calls #294

Closed rumbledethumps closed 5 months ago

rumbledethumps commented 5 months ago

This completes the entire API for the rp6502 target. It supports time.h, stdio.h, and some of unistd.h. I thought it might be helpful to have while the standard libraries are being designed and built.

The OS is based on POSIX so assumptions along those lines should be good. More details are here: https://picocomputer.github.io/api.html

I know it's not completely useful in its current state because many prototypes are missing from the standard library (open, read, etc.). It's not clear how to add prototypes properly without breaking other targets. Users know this is all experimental so breaking changes are no problem.

mysterymath commented 5 months ago

I know it's not completely useful in its current state because many prototypes are missing from the standard library (open, read, etc.). It's not clear how to add prototypes properly without breaking other targets. Users know this is all experimental so breaking changes are no problem.

Could these things go into rp6502.h for now?

mysterymath commented 5 months ago

Alright, LGTM!