Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Several of the
-fcode generation options are interesting:-fverbose-asmis useful if you’re compiling with-Sto examine the assembly output – it adds some informative comments.-finstrument-functionsadds code to call user-supplied profiling functions at every function entry and exit point.--coverageinstruments the branches and calls in the program and creates a coverage notes file, so that when the program is run coverage data is produced that can be formatted by thegcovprogram to help analysing test coverage.-fsanitize={address,thread,undefined}enables the AddressSanitizer, ThreadSanitizer and UndefinedBehaviorSanitizer code sanitizers, respectively. These instrument the program to check for various sorts of errors at runtime.Previously this answer also mentioned
-ftrapv, however this functionality has been superseded by-fsanitize=signed-integer-overflowwhich is one of the sanitizers enabled by-fsanitize=undefined.