Mark As Completed Discussion

Let's test your knowledge. Click the correct answer from the options.

Which of the following compiler flag sets is the recommended "Release (perf)" configuration for latency-critical HFT components as described in the C++ environment setup?

Click the option that best answers the question.

  • `-g -O0 -fsanitize=address,undefined` — full debug with sanitizers
  • `-O3 -march=native -flto -ffast-math -DNDEBUG -fno-plt` — aggressive optimizations for performance
  • `-O2 -pipe -static -s` — conservative optimizations with static linking and strip symbols
  • `-Ofast -Og -fno-exceptions -funroll-loops` — mixed optimization flags (fast + debug)