Suggested compiler flags for C4?

Post Reply
Mark Miles
Posts: 60
Joined: Mon Sep 08, 2014 10:07 pm
languages_spoken: english
ODROIDs: hundreds of C2's
Has thanked: 0
Been thanked: 0

Suggested compiler flags for C4?

Post by Mark Miles »

With C2 I was using the following flags:
-march=armv8-a -mtune=cortex-a53 -mcpu=cortex-A53
Will these work with the C4 as well or is there something more/better/different to set?

crashoverride
Posts: 5407
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 465 times
Contact:

Re: Suggested compiler flags for C4?

Post by crashoverride »

Mark Miles wrote:
Mon Jul 19, 2021 8:39 pm
Will these work with the C4 as well
Yes. A binary compiled with those flags is expected to operate correctly on C2 and C4.
Mark Miles wrote:
Mon Jul 19, 2021 8:39 pm
is there something more/better/different to set?
The settings affect instruction set, scheduling, errata, and extended features. The flags are also dependent on compiler version. For the majority of real world scenarios, there will be no observable difference.
https://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html

The C4 has Cortex-A55 cores. This is part of the armv8.2 architecture and includes features not available on C2 such as dot product. The optional features present are described in the /proc/cpuinfo file.

Code: Select all

fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp
While a binary compiled for C2 is expected to work on C4, the converse is not true if any armv8.2 features were enabled.
These users thanked the author crashoverride for the post:
odroid (Wed Jul 21, 2021 9:52 am)

Mark Miles
Posts: 60
Joined: Mon Sep 08, 2014 10:07 pm
languages_spoken: english
ODROIDs: hundreds of C2's
Has thanked: 0
Been thanked: 0

Re: Suggested compiler flags for C4?

Post by Mark Miles »

Thank you!

Post Reply

Return to “Projects”

Who is online

Users browsing this forum: No registered users and 1 guest