We’ll use Coq 8.5 and CompCert (the arm backend) for this lecture.
The first step is optional: install a gcc cross compiler for arm.
brew cask install gcc-arm-embedded.apt-get install gcc-arm-none-eabi.Now you should have arm-none-eabi-gcc installed.
Then, configure and build your CompCert for arm.
$ ./configure -toolprefix arm-none-eabi- arm-eabi
$ makeCreate a simple C source file test.c and make sure ccomp -S produces
arm assembly in test.s.