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
It would be nice to have SML# working natively on AArch64 platforms.
Here is the summary of my findings (the complete log is here):
configure and src/runtime/smlsharp.h need trivial changes: minoki@700b946
The difficult problem: LLVM hangs when building src/thread/main/Pthread.o. This is because llvm.init.trampoline and llvm.adjust.trampoline (used for callbacks from C to SML) are not supported on AArch64. So we need some alternative way to create C closures.
Activity
minoki commentedon Oct 1, 2022
I've got
smlsharpworking on Arm Mac. The branch is here. It is meant to use libffi for C callbacks, but they are not really tested.It needs an explicit
--targetoption when run (likesrc/compiler/smlsharp -Bsrc --target=arm64-apple-darwin).minoki commentedon Dec 22, 2023
I wrote an article for building
smlsharpon an Apple Silicon Mac:If English translation is wanted, I can provide one.