*(char*)0 = 0; - What Does the C++ Programmer Intend With This Code? - JF Bastien - C++ on Sea 2023
---
*(char*)0 = 0; - What Does the C Programmer Intend With This Code? - JF Bastien - C on Sea 2023
int main() {
*(char*)0 = 0;
}
This is a very simple program. Some might find it offensive, but let’s enjoy ourselves instead. Let’s talk about this program for the next 60 minutes. Maybe we can make it less offensive, let’s first ask: “what did the programmer intend with this code?” We’ll discuss what it might mean to a programmer, maybe we could help them express intent better. We should also consider what different versions of the code mean to various language standards. Once we’ve figured that out, how do compilers reconcile programmer’s feelings with standards’ opinions? That’s nice, but let’s dig in more deeply and look at what various kernels think about everyone’s opinions. Then, let’s see what various hardware do about all of this mess.
Of course we’ll talk about undefined behavior, but we’ll do so much more! We’ll travel up and down the stack, discussing in details everything that such a seemingly-simple program does.
---
Slides:
Sponsored by think-cell:
---
JF Bastien
JF is chief architect at Woven by Toyota. He chairs the evolution of the C programming language. JF has worked on a variety of compilers for a variety of programming languages, implementing language features, improving performance / security / safety, targeting novel architectures, and other fun things. See
---
C on Sea is an annual C and coding conference, in Folkestone, in the UK.
- Annual C on Sea, C conference:
- 2023 Program:
- Twitter:
---
YouTube Videos Filmed, Edited & Optimised by Digital Medium:
#cpp #cpponsea #cppprogramming
12 views
0
0
9 years ago 00:10:00 0
Warface. Клан 0_СИНДИКАТ_0 и ничего лишнего:D часть #3
10 years ago 00:08:27 5
Warface. Клан 0_СИНДИКАТ_0 и ничего лишнего:D часть #5
10 years ago 00:10:44 5
Warface. Клан 0_СИНДИКАТ_0 и ничего лишнего:D часть #4
9 years ago 00:15:15 7
AMX Chasseur de chars 1 vs 6 Мурованка – Стандартный бой World of Tanks Full HD WОT
2 years ago 00:24:56 101
ОЧЕРЕДНОЙ ПРЕМ 9 УРОВНЯ )0))0) - Char Mle. 75
4 years ago 00:06:53 1.8K
Char Futur 4 - ТОП ОБОРУДОВАНИЕ 2.0 + ПОЛЕВАЯ МОДЕРНИЗАЦИЯ
9 years ago 00:03:41 39
DJ DAVO & SURO // DU SHAT CHAR ES //
5 years ago 00:19:25 17
Char Futur 4 - ПЕРВЫЙ ФРАНЦУЗКИЙ СНАЙПЕР. Оборудование 2.0 WOT на Чар Футур 4!
11 months ago 00:54:28 40
*(char*)0 = 0; - What Does the C++ Programmer Intend With This Code? - JF Bastien - C++ on Sea 2023
6 years ago 00:02:02 6
Символы (char) в java
9 years ago 00:03:16 11
ЧАРЛИ, ЧАРЛИ, ЗДЕСЬ ЛИ ТЫ 0_0
5 years ago 00:21:22 71
Char Futur 4 ОБЗОР✮КАКОЕ ОБОРУДОВАНИЕ 2.0 СТАВИТЬ И КАК ИГРАТЬ НА Char Futur 4 в WoT✮ЭКСПЕДИЦИЯ 2020
5 years ago 00:03:42 29
Charli XCX - c2.0 [Official Audio]
5 years ago 00:02:59 22
Lucas Debargue / Charly Mandon, Caprice op. 0 n°11
6 years ago 00:01:46 1
Робот 2.0
6 years ago 00:08:13 0
WARFACE | ПУТЬ К 1 ЛИГЕ НА РМ 2.0 [ЧАРЛИ, 16 ЛИГА] - 11 СЕЗОН #1
7 years ago 00:07:48 6
Warface. Тета, чарли, переулки 2.0
10 years ago 00:02:36 2
Louis Lancien / Charly Mandon, Impromptu op.0 n°10
5 years ago 00:08:37 6
рм 2.0 Сервер Чарли. Челик зууумер, а я прицельное дно(((
10 months ago 02:53:27 2
СЕГОДНЯ ФИНАЛ?! Char Mle 75 - ОСТАЛОСЬ 4% ОТМЕТКИ! [4 Серия]