Skip to content

AArch64 support #73

Open
Open

Description

@minoki

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

  1. minoki commented on Oct 1, 2022

    @minoki
    Author

    I've got smlsharp working 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 --target option when run (like src/compiler/smlsharp -Bsrc --target=arm64-apple-darwin).

  2. minoki commented on Dec 22, 2023

    @minoki
    Author

    I wrote an article for building smlsharp on an Apple Silicon Mac:

    If English translation is wanted, I can provide one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions