Questions tagged [llvm-gcc]

llvm-gcc is a modified version of gcc that compiles C/ObjC programs into native objects, LLVM bitcode or LLVM assembly language, depending upon the options.

llvm-gcc is a modified version of gcc that compiles C/ObjC programs into native objects, LLVM bitcode or LLVM assembly language, depending upon the options.

218 questions
47
votes
3 answers

Unsupported compiler 'com.apple.compilers.llvmgcc42' xcode 5 DP

I have a project which contains Geos and Proj inside it. Before Xcode 5 I compiled them with LLVM GCC 4.2 compiler, but in Xcode 5 DP I get an error about unsupported compiler. Choosing another compiler get to compilation errors depends on syntax.…
Azat
  • 6,745
  • 5
  • 31
  • 48
28
votes
5 answers

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 result work? The same for other combinations of llvm-gcc, clang and normal gcc. I'm interested in how this works out on Linux (using normal…
user180247
24
votes
2 answers

LLVM equivalent of gcc -D macro definition on commandline

I am looking for LLVM (or clang) equivalent of gcc's -D flag which enables macro definition at commandline. Any pointers would be great.
shrm
  • 1,112
  • 2
  • 8
  • 20
18
votes
4 answers

Error when trying to install pylibmc on Mac OSX Lion

I've tried pip and easy_install, but I keep getting the following error: error: command '/usr/bin/llvm-gcc' failed with exit status 1 I'm running OSX Lion and the install runs inside a virtualenv, with Python 2.7.2. Thanks in advance.
Ash
  • 895
  • 2
  • 9
  • 18
16
votes
3 answers

Build 32-bit with 64-bit llvm-gcc

I have a 64-bit version of llvm-gcc, but I want to be able to build both 32-bit and 64-bit binaries. Is there a flag for this? I tried passing -m32 (which works on the regular gcc), but I get an error message like this: [jay@andesite]$ llvm-gcc -m32…
Jay Conrod
  • 28,943
  • 19
  • 98
  • 110
11
votes
3 answers

How to find arm-apple-darwin#-llvm-gcc-4.2 compiler on Xcode 5?

I am tying a cross compilation and for that I need to find where Xcode have placed the arm-gcc compiller. It used to be in /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2 but…
marcelosalloum
  • 3,481
  • 4
  • 39
  • 63
11
votes
2 answers

Optimization levels in LLVM and Clang

I am working on a project that I had been compiling with LLVM 2.6 and the llvm-gcc front end. I'm trying to test compiling it with LLVM 3.1 and clang. When I did this I got the following error message about -O5 optimization level: error: invalid…
Gabriel Southern
  • 9,602
  • 12
  • 56
  • 95
10
votes
4 answers

How to remove the OSX-GCC-Installer?

Just a couple of days ago I discovered and used Kenneth Reitz's OSX-GCC-Installer to solve the issue of installing Ruby 1.9.3 via RVM on my Mac. Today I read on Kenneth's blog about the Command Line Tools for Xcode package that Apple added to their…
Marius Butuc
  • 17,781
  • 22
  • 77
  • 111
10
votes
2 answers

Difference between LLVM, GCC 4.2 and Apple LLVM compiler 3.1

What are the major differences between LLVM GCC 4.2 and Apple LLVM compiler 3.1? I'm fairly new to compilers so any help is appreciated. Also I'm especially interested in how the two compilers could affect game performance.
SundayMonday
  • 19,147
  • 29
  • 100
  • 154
9
votes
1 answer

LLVM IR : C++ API : Typecast from i1 to i32 and i32 to i1

I am writing a compiler for a self-made language which can handle only int values i.e. i32. Conditions and expressions are similar to C language. Thus, I am considering conditional statements as expressions i.e. they return an int value. They can…
Chaitanya Patel
  • 390
  • 1
  • 4
  • 15
9
votes
1 answer

How can I use AES-NI intrinsics on a Mac?

I'm trying to compile a C application on a Mac. I use SSE4 and AES-NI intrinsics. In Linux, I just call gcc with the -msse4 and -maes flags and include the wmmintrin.h header and I can call SSE intrinsics like _mm_add_epi64(a,b) or AES-NI…
Rich Denver
  • 171
  • 1
  • 6
8
votes
3 answers

What's going on in Apple LLVM-gcc x86 assembly?

I'm interested in learning more x86/x86_64 assembly. Alas, I am on a Mac. No problem, right? $ gcc --version i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00) Copyright (C) 2007 Free Software…
Mike Bell
  • 395
  • 1
  • 4
  • 15
8
votes
1 answer

Xcode LLVM+GCC 4.2 - Generate Debug Symbols

I'm having a library project, I've always had "Strip Debug Symbols" turned ON for release builds I recently noticed the "Generate Debug Symbols" flag. When I set "Generate Debug Symbols" flag to NO then my library size shrinks by 30% Is this a…
Santthosh
  • 1,083
  • 1
  • 12
  • 30
7
votes
3 answers

Xcode 4.2 Code Coverage

I started to use Xcode 4.2 and i have problems with generating code coverage. Xcode 4.2 does not include the GCC 4.2 compiler, but it was replaced with the LLVM GCC 4.2 compiler. The first one was needed to generate code coverage in the previous…
Mats Stijlaart
  • 5,058
  • 7
  • 42
  • 58
7
votes
4 answers

No such file or directory after removing a duplicate subdirectory

My app was building and running fine on the simulator and device, but I noticed that for some reason, I had a duplicate directory within my main directory, and some duplicate files as well. So while my main directory was /MyAppName, there were also…
Bill Weakley
  • 153
  • 1
  • 8
1
2 3
14 15