libera/#mezzano - IRC Chatlog
Search
9:12:38
mixotricha
Question. When the Mezzano targets the QEMU is it still an X86 target? What is the QEMU emulating?
9:33:26
mixotricha
Okay cool. I said this previously but I am messing around with trying to get Mezzano to a Risc-V 64 target. Still trying to decide if this is a good idea or not. Plan was to get it to run in an FPGA in this vintage L-machine type thing I am building.
9:34:26
froggey
maybe my message didn't get through, but running on risc-v would require adding a new target to the mezzano compiler, which isn't an easy task
9:35:05
mixotricha
Yes so I had a plan for this. I looked at the ARM target and I wondered if I could go via clasp.
9:35:22
mixotricha
Over the past few days I have built clap and generated a RISC-V object file out of it.
9:35:56
mixotricha
You can probably guess why I then asked what the QEMU was targeted towards. Wondered if it was targeted to the arm stuff that I see in the source.
9:37:06
mixotricha
I've written a bit of lisp code and gone through the LLVM to get myself a RISC-V object out of it.
9:38:33
mixotricha
My thinking was to push the Mezzano through the CLASP. Or should I say put it on top of the CLASP.
9:38:42
froggey
mezzano is a (mostly) complete common lisp implementation, it only uses sbcl for bootstrapping. past that it is entirely independent
9:39:59
mixotricha
Right so ( assuming in some magical universe ) one got the boot strapping portion to come up via clasp one could target that code via the LLVM-IR out to whatever target one wanted.
9:41:15
froggey
in a very magical universe, where there is actual magic, yes. but we're in a more mundane universe, so no
9:41:50
froggey
it doesn't matter if you do the bootstrap with sbcl or clasp, you'll still end up with a mezzano image that only supports either x86-64 or arm64
9:43:36
mixotricha
Yes because the compiler which I have been reading through still targets either the X86 or the ARM ...
10:33:55
froggey
mixotricha: not really, llvm is a big chunk of C++, mezzano is written entirely in CL. making the two interoperate is difficult
11:07:07
mixotricha
I meant rather than target a specific instruction set in the compiler target an LLVM-IR