ELLCC (pronounced "elk") is an open-source set of tools to cross-compile programs for embedded systems. ELLCC uses clang/LLVM, libc++, libc++ABI, libunwind, musl, and compiler-rt as its run-time environment.
Questions tagged [ellcc]
7 questions
5
votes
2 answers
Error building ELLCC
Running the build script from ELLCC results in this error
gcc -DHAVE_CONFIG_H -I. -I../../../src/binutils/binutils -I. -I../../../src/binutils/binutils -I../bfd -I../../../src/binutils/binutils/../bfd -I../../../src/binutils/binutils/../include…

Hanxue
- 12,243
- 18
- 88
- 130
4
votes
1 answer
How to set up an ARM stack frame so GDB can traverse it?
I'm doing a little project to use a Linux standard C library for ARM on bare metal (no OS). I'm using qemu-system-arm as the execution platform and GDB to debug. I have written a little system call handler to handle the SVC calls that the C library…

Richard Pennington
- 19,673
- 4
- 43
- 72
3
votes
1 answer
Illegal instruction when running simple ELLCC-generated ELF binary on a Raspberry Pi
I have an empty program in LLVM IR:
define i32 @main(i32 %argc, i8** %argv) nounwind {
entry:
ret i32 0
}
I'm cross-compiling it on Intel x86-64 Windows for ARM Linux using ELLCC, with the following command:
ecc++ hw.ll -o hw.o -target…

Theodoros Chatzigiannakis
- 28,773
- 8
- 68
- 104
1
vote
2 answers
ELLCC embedded LLVM compilation fails with certain asm instructions against Thumb2 Cortex-M0
Instructions which are known to be valid, successfully used in Gnu G++ are causing some errors here against a Freescale MKL16Z Cortex-M0+ Thumb2
The code:
/* setup the stack before we attempt anything else
skip stack setup if __SP_INIT is 0
…

Jacob Jennings
- 2,796
- 1
- 24
- 26
1
vote
1 answer
Cross-compiling from OS X to ARM with ELLCC
I'm trying to cross-compile a C++(14) project from OS X to ARM to be run on a Cortex-M4 chip. The ELLCC project seems like it can be used for that, so here's what I did:
Setup a simple test file (main.cpp) as follows:
#include
int main()…

Louis Dionne
- 3,104
- 1
- 15
- 35
1
vote
1 answer
Pointers to a nice test suite of programs for a cross compilation tool chain?
I would like to find a nice test suite for my ELLCC cross compiler project based on clang/LLVM. What I need are a bunch of programs to compile. For example, today I cross compiled tcsh for my supported targets: arm, armeb, i386, microblaze, mips,…

Richard Pennington
- 19,673
- 4
- 43
- 72
0
votes
1 answer
ecc throws linker error
I've downloaded the ELLCC binaries (Windows, MinGW). I'm trying to assemble and link a single very simple IR file.
For x86_64-ellcc-windows-gnu, it works fine. For armv7-ellcc-linux (arm-linux-engeabi) and any other ARM target, it throws a linker…

Theodoros Chatzigiannakis
- 28,773
- 8
- 68
- 104