Some notes on build/compiler stuffs.
The gcc compiler flags which will produce the most optimal code for the BCM2835 are:
-Ofast -mfpu=vfp -mfloat-abi=hard -march=armv6zk -mtune=arm1176jzf-s
Note that -Ofast
may produce compile errors. In this case, -O3
or -O2
should be used instead.
Note that -mcpu=arm1176jzf-s
can be used in place of -march=armv6zk -mtune=arm1176jzf-s
.