All Projects → narke → gcc-cross-compiler

narke / gcc-cross-compiler

Licence: BSD-3-Clause license
A script to cross-compile GCC toolchain for various target architectures.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to gcc-cross-compiler

homebrew-macos-cross-toolchains
macOS cross compiler toolchains
Stars: ✭ 404 (+1162.5%)
Mutual labels:  gcc, cross-compiler-toolchain, gcc-cross-compiler
ewxb-gcc-cross-compiler-builder
A script for building a full GCC + glibc toolchain from scratch (with Go support via gccgo) in multiple stages.
Stars: ✭ 18 (-43.75%)
Mutual labels:  gcc, cross-compiler-toolchain
homebrew-i386-elf-toolchain
Homebrew formulas for buildling a valid GCC toolchain for the i386-elf target.
Stars: ✭ 62 (+93.75%)
Mutual labels:  gcc, gcc-cross-compiler
C
Compile and execute C "scripts" in one go!
Stars: ✭ 1,920 (+5900%)
Mutual labels:  gcc
Nos
RTOS for microcontrollers
Stars: ✭ 160 (+400%)
Mutual labels:  gcc
Sol2
Sol3 (sol2 v3.0) - a C++ <-> Lua API wrapper with advanced features and top notch performance - is here, and it's great! Documentation:
Stars: ✭ 2,791 (+8621.88%)
Mutual labels:  gcc
rtl2dot
C call graph generator
Stars: ✭ 48 (+50%)
Mutual labels:  gcc
Crypto1 bs
Bitsliced Crypto-1 brute-forcer
Stars: ✭ 140 (+337.5%)
Mutual labels:  gcc
FrameOfReference
C++ library to pack and unpack vectors of integers having a small range of values using a technique called Frame of Reference
Stars: ✭ 36 (+12.5%)
Mutual labels:  gcc
Fixed point
C++ Binary Fixed-Point Arithmetic
Stars: ✭ 199 (+521.88%)
Mutual labels:  gcc
Nginx Http Echo Module
A simple Nginx echo module
Stars: ✭ 192 (+500%)
Mutual labels:  gcc
Polymcu
An open framework for micro-controller software
Stars: ✭ 173 (+440.63%)
Mutual labels:  gcc
Gnu Eprog
Embedded Programming with the GNU Toolchain
Stars: ✭ 230 (+618.75%)
Mutual labels:  gcc
Libosmscout
Libosmscout is a C++ library for offline map rendering, routing and location lookup based on OpenStreetMap data
Stars: ✭ 159 (+396.88%)
Mutual labels:  gcc
mipsel-ecoff-toolchain
Net Yaroze cross compiler toolchain for linux
Stars: ✭ 27 (-15.62%)
Mutual labels:  cross-compiler-toolchain
Arm Cmake Toolchains
CMake toolchain configurations for ARM
Stars: ✭ 148 (+362.5%)
Mutual labels:  gcc
xcross
"Zero Setup" cross-compilation for C/C++. Supports numerous architectures, build systems, C standard libraries, vcpkg, and Conan.
Stars: ✭ 29 (-9.37%)
Mutual labels:  gcc
Xpcc
DEPRECATED, use our successor library https://modm.io instead
Stars: ✭ 177 (+453.13%)
Mutual labels:  gcc
Black
World's fastest HTML5 2D game engine   🛸
Stars: ✭ 174 (+443.75%)
Mutual labels:  gcc
Cmake Scripts
A selection of useful scripts for use in CMake projects, include code coverage, sanitizers, and dependency graph generation.
Stars: ✭ 202 (+531.25%)
Mutual labels:  gcc

GCC cross-compiler building script

Supported architectures:

    Cross-compiler toolchain build script
    Possible target platforms are:
     aarch64    ARM64
     amd64      AMD64 (x86-64, x64)
     arm32      ARM
     ia32       IA-32 (x86, i386)
     ia64       IA-64 (Itanium)
     mips32     MIPS little-endian 32b
     mips32eb   MIPS big-endian 32b
     mips64     MIPS little-endian 64b
     ppc32      32-bit PowerPC
     ppc64      64-bit PowerPC
     sparc32    SPARC V8
     sparc64    SPARC V9
     lm32       LatticeMico32

    The toolchain is installed into directory specified by the
    CROSS_PREFIX environment variable. If the variable is not
    defined, /usr/local/cross/ is used as default.
    
    If '--install no' is present, the toolchain still uses the
    CROSS_PREFIX as the target directory but the installation
    copies the files into PKG/ subdirectory without affecting
    the actual root file system. That is only useful if you do
    not want to run the script under the super user.

Dependencies to install on Debian-based distros

sudo apt install sed flex bison gzip gettext zlib texinfo libelf-dev libgomp1 make tar libgmp-dev libmpfr-dev libmpc-dev libisl-dev build-essential

Building

Example 1: Build a cross-compiler for 32-bit PowerPC using 4 cores without installing:

 ./toolchain.py --arch ppc32 --install no --cores 4

Example 2: Build and install a cross-compiler for 32-bit ARM (default install directory is /usr/local/cross, specify another one by exporting CROSS_PREFIX environment variable), note that you need 'sudo' to install:

 sudo ./toolchain.py --arch arm32 --install yes
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].