Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Discover techniques for optimizing C++ binary sizes in this comprehensive conference talk from C++ on Sea 2024. Explore coding practices that reduce executable size, including object initialization and special member function implementation. Examine the impact of dynamic polymorphism, virtual functions, and templates on binary size. Learn about the effectiveness of constexpr and its limitations. Delve into compiler and linker flags that significantly affect executable size, often surpassing code-level optimizations. Investigate the trade-offs of disabling run-time type information and exceptions. Gain valuable insights into balancing binary size reduction with functionality, equipping yourself with strategies to optimize C++ applications for embedded and mobile environments where size constraints are crucial.