Open dtomvan opened 3 years ago
hmmm, I'd actually been messing around with getting cargo rustc working last week and for me llc was erroring on call
instructions into core.
I've been assuming this is because there is no core built for the ez80.
I don't know why its erroring on ret for you. The build of llc ive been using recently is, I'm pretty sure, up to date with Jacobly0's llvm fork.
I think any programs / libraries that are no_core
should compile fine but that limits what you're able to do quite a bit obviously
To compile core we would most likely want to make a fork of rustc, which after trying it for a while, I don't think is really possible without someone who has more knowledge about how it works as if we were to do that I would want to add support for 24 bit pointers
I don't know why its erroring on ret for you. The build of llc ive been using recently is, I'm pretty sure, up to date with Jacobly0's llvm fork.
In fact, ret also errored for me, when I tried to index in a str. Also, I let github compile his fork and I’m also pretty confident in that I am up-to-date as well.
I also saw that compiler is ~3000 files out-of-sync with the main project (~1800 commits). The call instruction is brand new (as far as I could find in the docs), so it is very likely this version of llc just doesn’t know about it yet.
I am trying to do exactly that, but I got stuck at compile core
too because llc
just won't compile the LLVM-IR, because of a call
instruction too. Glad to see I'm not the only one struggling lol.
I'm not particularly well-versed into LLVM and rustc so I really don't know what to do. Did you manage to make it work since, or do you even have any lead for that?
So I created a fork of your project and I tried some things out. Good stuff. I changed my Makefile.toml to use
cargo rustc
, so you can use some dependencies if you want. However, when trying to use thecore
library in rust, your build of llc does not understand the instructionret
in the LLVM IR (which rustc came up with). I tried building my version of llvm as well. Do you have any idea why this is occurring?Llc logs: