Top "Llvm" questions

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.

clang/clang++ doesn't find C/C++ headers in windows?

1 hour ago I downloaded llvm-3.6.0-rc4-win32.exe from http://llvm.org/pre-releases/3.6.0/ . I tried to compile simple C code …

c++ c clang llvm mingw-w64
Are llvm-gcc and clang binary compatible with gcc? - particularly mingw gcc on Windows

If I build a static library with llvm-gcc, then link it with a program compiled using mingw gcc, will the …

gcc linker llvm clang llvm-gcc
Where is __dso_handle defined?

I have an unresolved symbol error when trying to compile my program which complains that it cannot find __dso_handle. …

linker llvm libstdc++
LLVM get constant integer back from Value*

I create a llvm::Value* from a integer constant like this: llvm::Value* constValue = llvm::ConstantInt::get( llvmContext , llvm::APInt( …

c++ llvm
How to generate machine code with llvm

I'm currently working on a compiler project using llvm. I have followed various tutorials to the point where I have …

c++ llvm machine-code
pragma pack(1) nor __attribute__ ((aligned (1))) works

My code used to work in the past, but now the struct size suddenly is 16 bytes. It used to be 13 …

xcode4 llvm pragma pack
Setting disassembly flavour to Intel in LLDB

Is there a way to set the disassembly flavour like there is in GDB within LLDB so that it spits …

gdb llvm lldb
Is it possible to debug a gcc-compiled program using lldb, or debug a clang-compiled program using gdb?

(Preface: I'm pretty new to C/C++ and I don't really know how debugging in native code actually works.) Some …

gcc gdb clang llvm lldb
In Xcode project target build settings, What is Mach-O Type?

After getting tired of numerous Match-O linker error, I want to know that this thing means. Instead of trial and …

objective-c ios xcode linker llvm
Understanding the simplest LLVM IR

I transform the simplest C code #include <stdio.h> int main() { return 0; } to its LLVM IR, using clang …

syntax llvm