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
0
votes
1 answer

How to generate a single LLVM IR from multiple sources

Compiling .c files to a single LLVM IR and link multiple libraries during the compilation. An example here with gcc: gcc -c -Wall -g3 -DVERSION=\"1.1.2\" ssl_proxy.c -o ssl_proxy.o gcc -o ssl_proxy ssl_proxy.o -lssl -lcrypto Now, I want to compile…
cache
  • 1,239
  • 3
  • 13
  • 21
0
votes
0 answers

LLVM Basic Program : Linker Error

I am just getting started with llvm. Here's code I am trying to compile: #include #include "llvm/IR/LLVMContext.h" #include "llvm/IR/Module.h" #include "llvm/IR/IRBuilder.h" int main() { llvm::LLVMContext& context =…
user1423561
  • 327
  • 1
  • 3
  • 18
0
votes
1 answer

LLVM - What optimizations frontend has done

I know that frontend (such as llvm-clang or llvm-gcc ) has also done some optimizations from native code to IR level. But what's optimizations that frontend has done ? Is there a list or a document I can check. Thanks.
Sam
  • 4,521
  • 13
  • 46
  • 81
0
votes
0 answers

Compiling fbexport under FreeBSD 10

I am attempting to compile fbexport (Firebird export/import tool) under FreeBSD10. GCC, binutils are installed. In make.conf: CC=gcc47 CXX=g++47 CPP=cpp47 USE_GCC=any But cd /tmp/fbexport-1.90 && make generate error: # make g++ -c -O1 -DIBPP_LINUX…
Andry
  • 121
  • 3
  • 12
0
votes
1 answer

Disable warnings in llvm-gcc

I'm trying to build an open source project with llvm-gcc 4.2 with -emit-llvm flag. However I get many errors due to warning flags. Example of these errors: cc1: error: unrecognized command line option "-Warray-bounds" cc1: error: unrecognized…
drum
  • 5,416
  • 7
  • 57
  • 91
0
votes
1 answer

Xcode update & gem install glib2

My development stack has been completely turned upside down since I've done the Apple last update of March 11, 2014, and I try to fix it bit by bit. Right now I'm stuck with the following error when I try to install the gem glib2: $ gem install…
user2024621
  • 275
  • 3
  • 9
0
votes
2 answers

overriding malloc on mac os

I want to override memory allocations in my program on Mac OS 10.9 using DYLD_INSERT_LIBRARIES. This is a very simple skeleton of the code I have implemented: void *(*default_malloc)(size_t) = NULL; void (*default_free)() = NULL; void…
Aarkan
  • 3,811
  • 6
  • 40
  • 54
0
votes
1 answer

Call LLVM-GCC in PHP

I tried to generate LLVM intermediate code by calling llvm-gcc -emit-llvm -I/mypath/ -c main.c -o main.o It works perfectly without any warnings or errors if I manually type this command in the terminal. However I have built a website that can…
Tianyu
  • 95
  • 1
  • 6
0
votes
1 answer

how do get lxml installed successfully on OSx?

Every time I am trying to install lxml package I am getting the below error in the end.. llvm-gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict- aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG…
Ciasto piekarz
  • 7,853
  • 18
  • 101
  • 197
0
votes
0 answers

Compiling/ Linking SoftFloat library using mips-linux-gnu-gcc

I am trying to compile and link a small C benchmark with floating-point operations for a MIPS target. The floating-point emulation library used with the benchmark is the SoftFloat. http://www.jhauser.us/arithmetic/SoftFloat.html The MIPS compiler is…
Jon J
  • 445
  • 3
  • 14
0
votes
1 answer

LLVM : generating a "ir" file for specifically z80 processor using llvm

I am working on LLVM, and want to generate the files according to specific target architecure e.g-z80. I have downloaded z80 source code and clang. I used --target in clang command to specify z80 but it is not working. can anybody help me out in…
0
votes
1 answer

Cross-compiling C to armv7 using arm-apple-darwin10-llvm-gcc-4.2

This might seem like a very specific question but central idea is quite broad. I have a simple hello world console application in C. I've compiled it on Mac OS X using following command: $ export PLATFORM=/Developer/Platforms/iPhoneOS.platform $…
bytefire
  • 4,156
  • 2
  • 27
  • 36
0
votes
0 answers

Config existing project (GCC) with Xcode 5 - LLVM compiler

I have an existing project that has some third party libs are compiled by LLVM-GCC 4.2 compiler Now, I need to compile with Xcode 5 that only supports LLVM 5.0 I just wonder if I can compile third party libs as static library (using LLVM-GCC 4.2)…
Huy Tran
  • 217
  • 5
  • 11
0
votes
1 answer

Is there any way to use host compiler's front end & target compiler's backend in GCC?

I have a host compiler(X86_64) GCC 4.6.3 & Target compiler(MIPS) GCC 4.5.3, Is there a way to use the host compiler's front-end along with target compiler's back-end? My question may be a bit weird, but reason for asking this is to use the latest…
Arunprasad Rajkumar
  • 1,374
  • 1
  • 15
  • 31
0
votes
1 answer

gcc compiling -E, -S, -save-temps and -M options are not allowed with multiple

I am trying to compile code on a Mac (OS X 10.7.5) I am stuck with a message, I don't know which action I should take to try to address or fix this. I am fully aware that this is a little short, but basically the only message thrown to the…
zabumba
  • 12,172
  • 16
  • 72
  • 129