Difference between revisions of "Bare metal PDP-11 GCC 9.3.0 cross compiler instructions"
(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...") |
m (Aram moved page Bare metal PDP-11 GCC 9.2.0 cross compiler instructions to Bare metal PDP-11 GCC 9.3.0 cross compiler instructions) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | [[Category:GCC]] | ||
+ | |||
== Introduction == | == Introduction == | ||
− | We'll build a GCC 9. | + | We'll build a GCC 9.3.0 targeting PDP-11 (bare metal). |
== Create directories == | == Create directories == | ||
Line 10: | Line 12: | ||
== Get GCC and binutils == | == Get GCC and binutils == | ||
− | curl https://ftp.gnu.org/gnu/binutils/binutils-2. | + | curl https://ftp.gnu.org/gnu/binutils/binutils-2.34.tar.gz | tar -C $HOME/src -xf - |
− | curl https://ftp.gnu.org/gnu/gcc/gcc-9. | + | curl https://ftp.gnu.org/gnu/gcc/gcc-9.3.0/gcc-9.3.0.tar.gz | tar -C $HOME/src -xf - |
− | |||
== Download prerequisites == | == Download prerequisites == | ||
− | cd $HOME/src/gcc-9. | + | cd $HOME/src/gcc-9.3.0 |
./contrib/download_prerequisites | ./contrib/download_prerequisites | ||
Line 22: | Line 23: | ||
cd $HOME/obj/binutils-build | cd $HOME/obj/binutils-build | ||
− | ../../src/binutils-2. | + | ../../src/binutils-2.34/configure --prefix $HOME/xgcc --bindir $HOME/bin --target pdp11-aout |
make -j8 && make install | make -j8 && make install | ||
Line 28: | Line 29: | ||
cd $HOME/obj/gcc-build | cd $HOME/obj/gcc-build | ||
− | ../../src/gcc-9. | + | ../../src/gcc-9.3.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 | + | make -j8 && make install |
Latest revision as of 12:55, 17 March 2020
Contents
Introduction
We'll build a GCC 9.3.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.34.tar.gz | tar -C $HOME/src -xf - curl https://ftp.gnu.org/gnu/gcc/gcc-9.3.0/gcc-9.3.0.tar.gz | tar -C $HOME/src -xf -
Download prerequisites
cd $HOME/src/gcc-9.3.0 ./contrib/download_prerequisites
Build and install binutils
cd $HOME/obj/binutils-build ../../src/binutils-2.34/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.3.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 && make install