Changes

Jump to: navigation, search

Bare metal PDP-11 GCC 9.3.0 cross compiler instructions

985 bytes added, 16:29, 10 November 2019
Created page with "== Introduction == We'll build a GCC 9.2.0 targeting PDP-11 (bare metal). == Create directories == cd $HOME mkdir -p src obj/{binutils-build,gcc-build} == Get GCC and bi..."
== Introduction ==

We'll build a GCC 9.2.0 targeting PDP-11 (bare metal).

== Create directories ==

cd $HOME
mkdir -p src obj/{binutils-build,gcc-build}

== Get GCC and binutils ==

curl https://ftp.gnu.org/gnu/binutils/binutils-2.33.1.tar.gz | tar -C $HOME/src -xf -
curl https://ftp.gnu.org/gnu/gcc/gcc-9.2.0/gcc-9.2.0.tar.gz | tar -C $HOME/src -xf -
curl ftp://sourceware.org/pub/newlib/newlib-3.1.0.tar.gz | tar -C $HOME/src -xf -

== Download prerequisites ==

cd $HOME/src/gcc-9.2.0
./contrib/download_prerequisites

== Build and install binutils ==

cd $HOME/obj/binutils-build
../../src/binutils-2.33.1/configure --prefix $HOME/xgcc --bindir $HOME/bin --target pdp11-aout
make -j8 && make install

== Build and install bare metal gcc ==

cd $HOME/obj/gcc-build
../../src/gcc-9.2.0/configure --prefix $HOME/xgcc --bindir $HOME/bin --target pdp11-aout --enable-languages=c --with-gnu-as --with-gnu-ld --without-headers --disable-libssp
make -j8 all-gcc install-gcc

Navigation menu