*(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
1 week ago 00:55:38 1
СУМЕРКИ l КИНОСУД №2 [Илья Овечкин, Дима Колыбелкин, Ариана Лолаева]
4 weeks ago 00:45:07 1
Pantera Rig Rundown with Rex Brown & Zakk Wylde
1 month ago 02:35:34 1
GTA Vice City - Фильм, (Игрофильм с Русской озвучкой)
1 month ago 02:00:31 1
Hazbin Hotel - причина по которой мы не достойны рая (feat. hentaisha)
1 month ago 00:00:00 1
БОРЬБА ЗА НОРМАЛЬНЫЙ СТРИМ ПО ПРОВИНЦИИ!! | MTA PROVINCE
1 month ago 00:17:07 1
ТОПИМ ПОДВОДНЫЕ ЛОДКИ | SEA POWER | Charlies! | 3
1 month ago 00:09:49 1
TRUMP’s $365M Dollar Airline that MISERABLY FAILED
1 month ago 00:11:51 1
15 заставок самых любимых сериалов нашего детства (Дисней/Джетикс)
1 month ago 00:10:20 1
Краткое содержание - Цветы для Элджернона
1 month ago 00:00:00 1
СТРИМЧИК ПО ПРОВИНЦИИ! | MTA PROVINCE
1 month ago 00:07:17 1
Пастор Андрей Шаповалов «Кровь и Слава»
1 month ago 00:11:26 1
Пастор Андрей Шаповалов «Может ли рождённый свыше потерять спасение?»
1 month ago 00:14:21 1
Erik Morales (Mexico) vs Rudy Bradley (USA) | TKO Boxing Fight Highlights
1 month ago 00:19:51 1
Map Beyond v2 для Euro Truck Simulator 2 (.)
1 month ago 01:06:24 14
Сборник красивых мелодий для души ,чарующая музыка, Музыка Сергей Грищук #КРАСИВАЯМУЗЫКА
1 month ago 00:03:33 5
Самая Комфортная Сборка от GameChannel9898 для Euro Truck Simulator 2 ( )
2 months ago 00:00:00 4
СОЗДАЕМ ОРГАНИЗАЦИЮ В ПРОВИНЦИИ ВМЕСТЕ! | MTA PROVINCE