You are browsing as a guest. Sign up (or log in) to start making projects!

rustydos

  • 3 Devlogs
  • 18 Total hours

rustydos is an attempt by me to, through various artifices and trickeries, convert rust into 8086 machine code

Open comments for this post

2h 18m 15s logged

another stupid pivot. turns out llvm is way harder to work with than i thought it was, so i might as well just write everything in c. no more originality!!

0
0
3
Open comments for this post

6h 58m 34s logged

i’ve pivoted.

modern piezoelectric speakers in keeping with the tradition of this general social malaise are probably 10 times worse and less flexible than the ibm 5150. i have no patience for rebooting or qemu so i thought why not use dos? and so i embarked on this terrifying journey…

pipeline:

  • rust → llvm bitcode (cargo targeting x86_64, but as long as no cpu-specific instructions are used it should be fine)
  • llvm bitcode → c (using rellic, which seems to be the cleanest)
  • manually cleaning c, which can be easily automated
  • c → x86 (watcom)

requirements for the rust code:

  • no_std
  • no panic!ing
  • no cpu-specific instructions
  • write your own bindings to watcom c headers (if you need them) since clang doesn’t understand watcom jank

soon all will be automated. then i can continue on my quest to oxidize bad apple on the 5150

0
0
2
Open comments for this post

8h 37m 51s logged

pc speaker stuff! i’m working on the resampling and frequency calculations portions now, hopefully the scheduler will play nicer with me…

0
0
3

Delete project?

Are you sure you want to permanently delete this project? This action cannot be undone.

All devlogs, followers, and associated data will be removed.

Followers

Loading…