Coder Social home page Coder Social logo

ARM64 macOS binaries about llvm-mos-sdk HOT 6 CLOSED

bcr avatar bcr commented on June 1, 2024
ARM64 macOS binaries

from llvm-mos-sdk.

Comments (6)

bcr avatar bcr commented on June 1, 2024

I'm digging into it some more. I think the core is that macos-latest is 12.6.9 on Intel, so the compiler builds x86_64 single architecture.

I found this link that might be useful about building fat binaries (strategy 1 above), still reading. https://discourse.llvm.org/t/build-runtimes-for-the-same-archs-as-llvm/71522

from llvm-mos-sdk.

johnwbyrd avatar johnwbyrd commented on June 1, 2024

I was under the impression that M1's could emulate x86_64 for backwards compatibility. In general on the great majority of projects, compilation time for llvm-mos is negligible.

I also note that GitHub recently added M1 runners, so it should technically be possible to run llvm-mos automated tests on that target.

from llvm-mos-sdk.

bcr avatar bcr commented on June 1, 2024

I was under the impression that M1's could emulate x86_64 for backwards compatibility.

I think the way that Apple has chosen to do this is the same as the migration from the IBM ARM processors to the Intel processors -- they have a translation service called Rosetta that handles running code for the non-native platform. For the original Rosetta, they supported it for I think five years and then stopped. For the current Rosetta we are four years into the transition, so there's a real potential for support to end in the next year or so.

from llvm-mos-sdk.

bcr avatar bcr commented on June 1, 2024

As far as I can tell this is fixed with llvm-mos/llvm-mos#274 -- I was able to download the latest artifact.zip and compile and run the k_console_test in the x16 emulator.

from llvm-mos-sdk.

bcr avatar bcr commented on June 1, 2024

Whoops, some local binaries are made in this project also. Reopening, but I've got a PR ready.

from llvm-mos-sdk.

bcr avatar bcr commented on June 1, 2024

Looks good based on the prerelease archive.

➜  ~ file ~/llvm-mos/bin/mos-sim               
/Users/blake/llvm-mos/bin/mos-sim: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64Mach-O 64-bit executable x86_64] [arm64:Mach-O 64-bit executable arm64Mach-O 64-bit executable arm64]
/Users/blake/llvm-mos/bin/mos-sim (for architecture x86_64):	Mach-O 64-bit executable x86_64
/Users/blake/llvm-mos/bin/mos-sim (for architecture arm64):	Mach-O 64-bit executable arm64

from llvm-mos-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.