DiscoverCppCon 2016 Sessions (Audio)CppCon 2016: Serge Guelton “C++ Costless Abstractions: the compiler view"
CppCon 2016: Serge Guelton “C++ Costless Abstractions: the compiler view"

CppCon 2016: Serge Guelton “C++ Costless Abstractions: the compiler view"

Update: 2016-11-03
Share

Description

Published on Oct 7, 2016
http://CppCon.org

Presentation Slides, PDFs, Source Code and other presenter materials are available at: https://github.com/cppcon/cppcon2016

One of the motto of C++ is « costless abstractions », a.k.a. you only pay for what you use. To achieve this goal, modern C++ puts a heavy burden on the compiler. But what does the compiler really does when it meets an exception? When it finds a nested lambda? When it encounters a structure that wraps a single scalar?
During this talk, we'll go trough a set of innocent C++ sample that involves several data types and algorithms from the standard library, and verify that the costless abstraction principle holds, especially when looking at the difference between several optimization level, eventually digging into specific compiler optimization to understand what happens under the hood.
This talk uses Clang++ as the reference compiler, and relies on its LLVM bitcode output to explain how the abstractions are lowered (or completely pruned) at the Intermediate Representation level.

Serge Guelton
QuarksLab

Videos Filmed & Edited by Bash Films: http://www.BashFilms.com
Comments 
In Channel
loading
00:00
00:00
x

0.5x

0.8x

1.0x

1.25x

1.5x

2.0x

3.0x

Sleep Timer

Off

End of Episode

5 Minutes

10 Minutes

15 Minutes

30 Minutes

45 Minutes

60 Minutes

120 Minutes

CppCon 2016: Serge Guelton “C++ Costless Abstractions: the compiler view"

CppCon 2016: Serge Guelton “C++ Costless Abstractions: the compiler view"

Serge Guelton