2013년 11월 22일 금요일

ARMv7 CFLAGS/CXXFLAGS setting

The default ARMv7 CFLAGS/Cxx used to build ARMv7 stages.

<code>CHOST=”armv7a-hardfloat-linux-gnueabi”
CFLAGS="-Os -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -pipe"
</code>

 The vfpv3-d16 option was included in gcc-4.4, and since thats what its stable, we’ll change the CFLAGS. This doesn’t affect current installations, but users are recommended to change their CFLAGS and rebuild the system.

 The "-mfloat-abi=hard" is implied by the hard float string in CHOST.

 Of course like always you’re free to use any other CFLAGS that suit better your system. You can use vfpv3 or neon if your system has those options. Those CFLAGS i mention is just for the armv7a stages we build, which target the “worst” possible ARMv7 processor.

댓글 없음:

댓글 쓰기