[LLVMdev] Assembly Mips from bitecode llvm

Rafael Parizi parizi.computacao at gmail.com
Tue Mar 6 05:57:33 PST 2012


llvm-gcc (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2.9)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


llc --version:
Low Level Virtual Machine (http://llvm.org/):
  llvm version 2.9
  Optimized build.
  Built Mar  5 2012 (20:21:19).
  Host: x86_64-unknown-linux-gnu
  Host CPU: i686

  Registered Targets:
    alpha   - Alpha [experimental]
    arm     - ARM
    bfin    - Analog Devices Blackfin [experimental]
    c       - C backend
    cellspu - STI CBEA Cell SPU [experimental]
    cpp     - C++ backend
    mblaze  - MBlaze
    mips    - Mips
    mipsel  - Mipsel
    msp430  - MSP430 [experimental]
    ppc32   - PowerPC 32
    ppc64   - PowerPC 64
    ptx     - PTX
    sparc   - Sparc
    sparcv9 - Sparc V9
    systemz - SystemZ
    thumb   - Thumb
    x86     - 32-bit X86: Pentium-Pro and above
    x86-64  - 64-bit X86: EM64T and AMD64
    xcore   - XCore


On Tue, Mar 6, 2012 at 10:36 AM, Anton Korobeynikov <anton at korobeynikov.info
> wrote:

> Ok. And what does llvm-gcc --version show?
>
> ---
>
> With best regards,
> Anton Korobeynikov
> On Mar 6, 2012 5:22 PM, "Rafael Parizi" <parizi.computacao at gmail.com>
> wrote:
> >
> > For compile and link Basicmath files (using shell script):
> >
> > llvm-gcc -emit-llvm basicmath_small.c -c -o basicmath_small.bc
> > llvm-gcc -emit-llvm cubic.c -c -o cubic.bc
> > llvm-gcc -emit-llvm isqrt.c -c -o isqrt.bc
> > llvm-gcc -emit-llvm rad2deg.c -c -o rad2deg.bc
> > llvm-link basicmath_small.bc cubic.bc isqrt.bc rad2deg.bc -o
> basicmath.bc
> >
> > otms="disable-opt#adce#always-inline#argpromotion#block-placement#....."
> > IFS=#
> > for i in $otms
> > do
> >   printf "\n$i ::::::: "
> >   opt -$i basicmath.bc -o basicmath.$i.bc
> >   llc -march=mipsel basicmath.$i.bc -o basicmath.$i.s
> > done
> >
> > On Tue, Mar 6, 2012 at 10:11 AM, Anton Korobeynikov <
> anton at korobeynikov.info> wrote:
> >>
> >> Hello
> >>
> >> > For this, for example, initially I compile the sources
> >> How have you made this step?
> >>
> >> --
> >> With best regards, Anton Korobeynikov
> >> Faculty of Mathematics and Mechanics, Saint Petersburg State University
> >
> >
> >
> >
> > --
> > Rafael Parizi
> >
> >
> >
>
>


-- 
*Rafael Parizi*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120306/7b7c1df9/attachment.html>


More information about the llvm-dev mailing list