[LLVMbugs] [Bug 303] NEW: linux binfmt_misc support for llvm

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Mar 25 12:13:32 PST 2004


           Summary: linux binfmt_misc support for llvm
           Product: Website
           Version: unspecified
          Platform: PC
               URL: http://www.tat.physik.uni-
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Documentation
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: jack-llvm-cs-uiuc-edu at mudshark.org

You can register lli as an interpreter for files with magic of "llvm" using the
binfmt_misc module in the linux kernel:

[root at ice:fs]$ mount -t binfmt_misc none /proc/sys/fs/binfmt_misc
[root at ice:binfmt_misc]$ echo ':llvm:M::llvm::/path/to/lli:' >

Then you don't need the shell script wrapper. :)

[jack at ice:c]$ cat hello.c 
#include <stdio.h>
int main() {
        printf("hello world\n");
        return 0;
[jack at ice:c]$ llvmgcc -o hello hello.c
[jack at ice:c]$ ./hello.bc 
hello world


------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

More information about the llvm-bugs mailing list