Commit 11888735 authored by Etienne Renault's avatar Etienne Renault
Browse files

configure.ac: support for gnueabihf

* configure.ac, assignments.texi: here.
parent ab966277
......@@ -5,7 +5,7 @@
@settitle The Tiger Compiler Project Assignment
@c Updated when you save this file:
@set lastupdate November 24, 2017
@set lastupdate January 23, 2018
@set class 2019
@c Name of the project.
......@@ -10204,11 +10204,11 @@ To generate a binary from an ARM assembly file:
@end example
@filecaption{print-int-arm.tig}
@execcaption{compile-print-int-arm.asm, tc --target-arm -S print-int-arm.tig >print-int-arm.s}
@execcaption{assemble-and-link-print-int-arm, arm-linux-gnueabi-gcc-7 -march=armv7-a -oprint-int print-int-arm.s}
@execcaption{assemble-and-link-print-int-arm, arm-linux-gnueabihf-gcc-7 -march=armv7-a -oprint-int print-int-arm.s}
To run your code, use @acro{qemu}:
@execcaption{run-print-int, qemu-arm -L /usr/arm-linux-gnueabi ./print-int}
@execcaption{run-print-int, qemu-arm -L /usr/arm-linux-gnueabihf ./print-int}
@acro{qemu} (Quick Emulator) is a machine emulator and virtualizer.
It can emulate a full system, including processor and peripherals. We are using
......
......@@ -30,7 +30,7 @@ AC_CHECK_PROGS(HAVM, [havm], no, [/usr/bin/ /usr/local/bin])
AC_CHECK_PROGS(SPIM, [spim], no, [/usr/bin/ /usr/local/bin])
AC_CHECK_PROGS(LLC, [llc llc-5.0], no, [/usr/bin/ /usr/local/bin])
AC_CHECK_PROGS(TC, [tc], no, [/usr/bin/ /usr/local/bin])
AC_CHECK_PROGS(ARMCC, [arm-linux-gnueabi-gcc arm-linux-gnueabi-gcc-7], no, [/usr/bin/ /usr/local/bin])
AC_CHECK_PROGS(ARMCC, [arm-linux-gnueabihf-gcc-7 arm-linux-gnueabi-gcc arm-linux-gnueabi-gcc-7], no, [/usr/bin/ /usr/local/bin])
# FIXME: Ensure `$CC -m32' works and produces a valid executable.
# (What should we do on platforms where it cannot easily be made to
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment