12-28-2020 08:22 AM
From this link, I see that supplying the -g flag to the Vitis compiler command v++ "generates code for debugging the kernel. Using this option adds features to facilitate debugging the kernel as it is compiled and the FPGA binary is built."
My questions are,
1) What additional information is provided by supplying this flag?
2) Does supplying this flag affect the overall performance of the hardware that gets emulated and hardware that gets synthesized?
01-13-2021 10:16 AM
To answer you first question, I believe the -g flag uses GDB debugging. If you are unfamiliar with GDB, you can refer to the following site:
I am moving you post to the Vitis board, as I think the team there will be better able to support you with questions related to this.
01-14-2021 04:44 AM - edited 01-14-2021 04:46 AM
This is used to pass the symbol information to the debugger. Also, it will prevent optimization. So, yes, it will have affect on over all performance