Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Viper on macOS arm64 #327

Closed
fpoli opened this issue Oct 21, 2022 · 7 comments
Closed

Viper on macOS arm64 #327

fpoli opened this issue Oct 21, 2022 · 7 comments

Comments

@fpoli
Copy link
Member

fpoli commented Oct 21, 2022

I think that the Viper IDE cannot work on macOS with an arm64 chip (M1) because the Viper releases currently ships the x64 version of Z3. We could consider releasing a ViperToolsMac-arm64.zip that uses e.g. z3-4.11.2-arm64-osx-11.0.zip. However, the arm64 build of Z3 is only available for recent Z3 versions.

@fpoli
Copy link
Member Author

fpoli commented Nov 28, 2022

We got reports saying that the x86_64 version of z3 works fine, but it's not clear if it's slower than a z3 compiled for arm64. If someone can evaluate this (comparing the same z3 version compiled for different architectures but all running on M1) it would be great.

@ArquintL
Copy link
Member

This is the z3 binary compiled on an ARM MacBook Pro (actually M2 but that shouldn't matter):
z3_4.8.6_macOS_arm.zip

@fpoli
Copy link
Member Author

fpoli commented Nov 30, 2022

What allows to run x86 binaries on macOS arm64 is called Rosetta 2, a dynamic binary translator. As expected, some benchmarks show that it's worse than directly running a native arm64 binary.

@ArquintL
Copy link
Member

Very interesting, thanks for sharing!

@JonasAlaif
Copy link
Contributor

JonasAlaif commented Mar 24, 2023

Fixed by my latest changes, the prebuilt z3-arm64 lives here and that same repo also builds Boogie for arm64. If we ever update to a newer z3 then we can use the prebuilt images for arm64 that they now provide

@fpoli
Copy link
Member Author

fpoli commented Mar 24, 2023

Does the Viper IDE detect the architecture in order to download ViperToolsMacARM.zip instead of ViperToolsMac.zip?

@fpoli
Copy link
Member Author

fpoli commented Mar 24, 2023

Oh, I just noticed the latest commits. Nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants