[LLVMdev] Debugging Information for Windows

Daniel Dunbar daniel at zuster.org
Thu Jul 16 20:08:44 PDT 2009


On Wed, Jul 15, 2009 at 9:02 AM, Jon Sargeant<aliphany at gmail.com> wrote:
>>> Can LLVM generate debugging information for a Windows target?
>> Yes. LLVM generates DWARF debugging information. I haven't checked its
>> status recently, but it worked some time ago (on mingw32). Note that,
>> however, you cannot mix stabs debug format and DWARF (I saw, e.g.
>> pretty weird results from gdb in that case), that means you will need
>> either use new mingw32 gcc (4.2+) or rebuild runtime, etc to use
>> DWARF.
>
> Ok, is there a tutorial on how to emit assembly and machine code?  I'm
> using the code in llc as a starting point, but I'm running into lots
> of problems.

I don't think we have any tutorial on this, although it would be an
obvious extension of the Kaleidoscope tutorial.

You may find clang's Backend.cpp useful:
  http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/Backend.cpp?revision=75821&view=markup
It is relatively self contained.

 - Daniel

> Best Regards,
> Jon
>
>>
>> --
>> With best regards, Anton Korobeynikov
>> Faculty of Mathematics and Mechanics, Saint Petersburg State University
>> _______________________________________________
>> LLVM Developers mailing list
>> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>>
>
> _______________________________________________
> 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