You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the same LLVM-MOS v18 Backend is used in zig and ldc2 (dlang). However, when building the new soa_example.d file, it can be seen that the layout of the SOA structure has a size of i32 bit and not i16 bit.
I have tried modifying the compiler bitness on the ldc2 side (not dmd frontend), by adding mos-target to the compiler driver. However, no change in the result.
Currently the same LLVM-MOS v18 Backend is used in zig and ldc2 (dlang). However, when building the new
soa_example.d
file, it can be seen that the layout of the SOA structure has a size of i32 bit and not i16 bit.I have tried modifying the compiler bitness on the ldc2 side (not dmd frontend), by adding mos-target to the compiler driver. However, no change in the result.
src: https://github.com/kassane/dlang-mos-hello-world/blob/main/c64/soa/src/soa_example.d
code ported to C
build commands
ldc2 output:
zig output:
References
The text was updated successfully, but these errors were encountered: