[LLVMdev] [patch] native AMD64 support

Misha Brukman brukman at uiuc.edu
Wed Dec 22 22:40:22 PST 2004


On Thu, Dec 23, 2004 at 06:42:02AM +0100, Markus F.X.J. Oberhumer wrote:
> with the small patch attached below the whole llvm toolchain (llvm &
> llvm-gcc) will compile and run under AMD64 Linux in native 64-bit LP64
> mode.

Sounds great!  I'll add it to the list of supported platforms.
 
> This means that compilation, bytecode management and CWriter output
> all work as expected. Of course there is no JIT, and the bytecode
> interpreter is still very much untested - more patches may follow.

The bytecode interpreter is untested on many platforms -- part of the
reason is that it's very, very slow to run on reasonable programs.

If you want to work on something, getting LLC to produce AMD64 code
would be the first step, and getting the JIT to work would be the
second.  I am assuming native 32-bit binaries will run, just slower, so
this is an "optimization". :)  However, working on the interpreter is
largely a waste of your time.

The interpreter structure itself is due for a rewrite, see item #8 of

  http://llvm.cs.uiuc.edu/docs/OpenProjects.html#misc_new

-- 
Misha Brukman :: http://misha.brukman.net :: http://llvm.cs.uiuc.edu




More information about the llvm-dev mailing list