Skip to Content
Raspberry Pi System Software Reference
book

Raspberry Pi System Software Reference

by Warren W. Gay
November 2014
Intermediate to advanced
132 pages
2h 13m
English
Apress
Content preview from Raspberry Pi System Software Reference

APPENDIX D

image

ARM Compile Options

For ARM platform compiles, the following site makes compiler option recommendations: http://elinux.org/RPi_Software.

The site states the following:

  • The gcc compiler flags that produce the most optimal code for the Raspberry Pi are as follows:
    • -Ofast -mfpu=vfp -mfloat -abi=hard -march=armv6zk -mtune=arm1176jzf-s
  • For some programs, -Ofast may produce compile errors. In these cases, -O3 or -O2 should be used instead.
  • -mcpu=arm1176jzf-s can be used in place of -march=armv6zk -mtune=arm1176jzf-s.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Raspberry Pi Hardware Reference

Raspberry Pi Hardware Reference

Warren W. Gay
Raspberry Pi Hacks

Raspberry Pi Hacks

Ruth Suehle, Tom Callaway

Publisher Resources

ISBN: 9781484207963Purchase book