Reputation: 45
I need to install Valgrind on my Mac M1 for checking memory allocation in C programming language.
Is VBox best solution for me in this case if it's not possible to install it ona Mac M1? Or can I somehow achieve it using Docker?
Thank you for your answers!
Upvotes: 1
Views: 4012
Reputation: 2998
For Mac ARM based/M1 devices:
There is a cli command called leaks
which might be interesting to you.
Here is a simple usecase tutorial https://www.youtube.com/watch?v=bhhDRm926qA
Upvotes: 1
Reputation: 6936
You will get the best results if you use a machine that the Valgrind developers use the most. That means amd64 and either RedHat Linux or FreeBSD. From what I've seen IBM do a decent job of supporting s390 and POWER.
As mentioned in the comments, Louis Brunner has done some work on getting macOS support improved. I don't have any ARM based Apple hardware so I've never tested it. I have tested his code on a Intel macbook. It's in a much better state than the upstream code - for a start it builds with recent macOS and XCode versions. However there are still many major restrictions. Just to mention 2, DRD doesn't work at all and no GUI applications work.
We need more help to get Valgrind on macOS up to the level of other platforms.
Upvotes: 2