Suggested gcc compiler option for PYNQ on ZCU-104

Hi,

I’m not sure if it’s proper to ask the question here since I’m not an embedded SW guy.

I’m using the PYNQ on ZCU-104. In our application, we need to compile the C/C++ code on PYNQ. Previously, we used PYNQ-Z1 which equips with dual-core Cortex-A9 processor. In the .bashrc, we used the following setting for compile flags.

export CXXFLAGS=“$CXXFLAGS -fdiagnostics-color -Wno-psabi -mfloat-abi=hard -mfpu=vfpv3-d16 -mthumb -fPIC”
export CFLAGS=“$CFLAGS -fdiagnostics-color -mfloat-abi=hard -mfpu=vfpv3-d16 -mthumb -fPIC”

However, we change the platform to PYNQ plus Xilinx Zynq UltraScale+ MPSoC ZCU104 with quad-core ARM Cortex-A53 applications processor. For the setting of compile flags in .bashcr, should I make any changes?

I did some check and it seems the -mfloat-abi=hard, -mfpu=vfpv3-d16 -mthumb are no longer supported by aarch64 now. Thus, would you share your experience in the setting of compiler options to use on PYNQ over ZCU-104? The bottom line is to remove all these options first.

Thank you.

Would you please share the GCC aarch64 related compile options you use on ZCU-104 for C/C++ code compile over PYNQ? Thank you.

We don’t set any special CFLAGS when compiling code for the ZCU104. It might not be optimal but it works.

Thank you.