[LLVMdev] llc generated assembly does not work with gcc 3.4.4

Chris Lattner clattner at apple.com
Mon Feb 8 17:41:28 PST 2010


On Jan 28, 2010, at 1:31 AM, Alexander Herz wrote:
> Hi,
>
> I tried that before, it produces

Anton, the issue here is the 'isWindows' X86 sub-target.  Should it  
just use the MCAsmInfo values as MingW?

-Chris

>
>    .text
>    ALIGN    16
>    .globl    _main
> _main:                                                      ; @main
> ; BB#0:                                                     ; %entry
>    subl    $20, %esp
>    movl    $0, 16(%esp)
>    movl    24(%esp), %eax
>    movl    %eax, 12(%esp)
>    movl    28(%esp), %eax
>    movl    %eax, 8(%esp)
>    movl    $($_.str), (%esp)
>    call    _printf
>    movl    16(%esp), %eax
>    addl    $20, %esp
>    ret
>    .data
>                                                            ; @.str
> $_.str:
>    db    "hello world\n\000"
>
> which is not digested by gcc.
>
> Alex
>
> Anton Korobeynikov schrieb:
>>> Well, can I enforce gcc compatible output somehow?
>>>
>> llc -x86-asm-syntax=att
>>
>>
>
>
> -- 
> -------------------------------------------------------
> Lehrstuhl I2 Seidl
> Sprachen und Beschreibungsstrukturen der Informatik
> Institut fuer Informatik
> Technische Universitaet Muenchen
>
> Boltzmannstrasse 3  85748 Garching
> http://www2.in.tum.de
>
> Telefon: +89 289 181806
> Fax: +89 289 18161
> -------------------------------------------------------
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev




More information about the llvm-dev mailing list