C++ Insights - Episode 44: Compilers are lazy, and this is good

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ม.ค. 2025

ความคิดเห็น • 2

  • @mohammadghasemi2402
    @mohammadghasemi2402 ปีที่แล้ว

    Thank you. Are the contents of your videos also applicable to MSVC?

    • @andreas_fertig
      @andreas_fertig  ปีที่แล้ว +1

      As far as I know, yes. It's mostly about work the compiler has to do, which results in longer compile times. We want fast compilers. A compiler that deliberately creates non-required objects just so the optimizer can throw them away will not be as fast as the one that creates only what is required.