Open AnErrupTion opened 9 months ago
Looks like you should use thumb
arch instead of arm
.
Looks like you should use
thumb
arch instead ofarm
.
That seems to work, however I have 2 issues. The first one, relatively minor, is a missing implementation for the __rt_udiv64
function. I implemented it like below, but i'm not sure if it's right or not:
export fn __rt_udiv64(a: u64, b: u64) u64 {
return a / b;
}
However, a bigger issue is, when I try to boot the EFI application on the bare metal, it just does... nothing. It basically freezes. Keep in mind there's still nothing in the main
function either, so it should just boot straight into the OS, but it doesn't, it's stuck.
I know this isn't particularly precise, but I'm not sure how to even debug this.
Zig Version
0.11.0 & 0.12.0-dev.1802+56deb5b05
Steps to Reproduce and Observed Behavior
Create a new project (with
zig init-exe
on 0.11.0 for example) with the following target:And execute
zig build
. This produces the following error:Note: This also seems to happen with
.windows
set asos_tag
.Expected Behavior
I should be able to compile just fine.