Hi,
I was just wondering if adding debug symbols to my program,
will slow down it's performance.

I'm running linux.

thanks in advance

Yes because the compiler can't optimize the code. It also makes the program at least twice the size it needs to be.

Thanks makes sense,
And I guess it's the same with the profiling?

Debug symbols are needed if you are trying to debug though! If by profiling you mean something like cachegrind, that will be VERY slow... (maybe 50x slower?), but you get an unbelievable view of any bottlenecks in your code.

Dave

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.