LLVM Virtual Machine

Hi,

I am going to use LLVM for my Thesis. Is there any LLVM Virtual Machine to download. I have some problem with installing and configuring the LLVM, please let me have the virtual machine link to download if there is any.

Regards,
Asad

It’s not really a virtual machine. The name is misleading. It’s an optimizer that uses a virtual instruction set.

There is an interpreter, lli, for the virtual instruction set, but in fact it’s usually a JIT compiler. You can force it to interpret, which is about 300 times slower. In any case, lli will only run programs compiled for the host computer, so it’s not a virtual machine in the usual sense.

Yes, the wikipedia introduction covers it: https://en.wikipedia.org/wiki/LLVM

Hi,

I am going to use LLVM for my Thesis. Is there any LLVM Virtual Machine to download. I have some problem with installing and configuring the LLVM, please let me have the virtual machine link to download if there is any.

I don’t know of anybody who has set up a VM to test LLVM. I think having a VM image with pre-compiled LLVM and all the dependencies would indeed be a useful thing.

I reckon that vagrant init ubuntu/xenial64 would be a good start; LLVM should build fine on recent Linuxes.

Best,
Jonas

Hmm. If that's what is wanted, there's this:

https://github.com/d11wtq/llvm-docker

A little old now, but could be undated.

I don't think so. What system are you using to run such an VM where you
can't easily install the dependencies yourself? You don't need that many
things for LLVM, essentially a compiler, cmake, ninja and Python.

Joerg

Unfortunately it dose not help. Is there any VM with preinstalled LLVM to download?

Unfortunately it dose not help. Is there any VM with preinstalled LLVM to download?

The FreeBSD release VM images have Clang installed as part of the base system, though it’s not clear what you mean by ‘LLVM installed’. If you need all of the LLVM development libraries and so on as well, then ‘pkg install llvm’ will do this for you.

Given that LLVM is packaged for all major operating systems, I’m not sure why you feel that a VM is more convenient though.

David

We also have absolutely no idea what computer, operating system, specifications etc Asad has.

Hey, I’ve got my own EC2 AMI with Ubuntu and LLVM and some other things installed on that I launch a few machines on from time to time. Works fine with free tier machines. (or with c4.8xlarge :slight_smile: )

That might not be any use to him.

Or I’ve got an image for VirtualBox with a 32 bit x86 Ubuntu with LLVM and other stuff that I use to test things.

But maybe Asad wants something for VMWare Player. Or Parallels. Or … ?

I’ve got a Raspberry Pi image with LLVM and other stuff that works in QEMU when I want to do something that needs more than the 1 GB RAM that a real Pi has.

But we have absolutely no idea what Asad can use, what resources he has available, or what it is that he actually wants to do.