We’ll use Coq 8.5 and CompCert (the arm backend) for this lecture.

Preparation

The first step is optional: install a gcc cross compiler for arm.

Now you should have arm-none-eabi-gcc installed.

Then, configure and build your CompCert for arm.

$ ./configure -toolprefix arm-none-eabi- arm-eabi
$ make

Create a simple C source file test.c and make sure ccomp -S produces arm assembly in test.s.

Today’s plan