cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Visitor
Visitor
177 Views
Registered: ‎09-02-2020

What does the -g flag do in the Vitis Compiler Command? Does it affect performance?

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?

Tags (3)
0 Kudos
Reply
2 Replies
Moderator
Moderator
58 Views
Registered: ‎11-21-2018

Hi @acabrera 

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: 
https://www.gnu.org/software/gdb/

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. 

 

Aoife
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Reply
Moderator
Moderator
32 Views
Registered: ‎09-12-2007

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

0 Kudos
Reply