*(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
27 просмотров
129
23
3 дня назад 00:54:28 12
*(char*)0 = 0; - What Does the C++ Programmer Intend With This Code? - JF Bastien - C++ on Sea 2023
3 дня назад 00:09:33 1
Как Поддержать Разговор Интроверту
4 дня назад 02:00:31 1
Hazbin Hotel - причина по которой мы не достойны рая (feat. hentaisha)
5 дней назад 00:02:58 1
[Free for profit] SUICIDAL-IDOL x akiaura x Crystal Castles scenecore type beat - “last:day“
5 дней назад 00:23:45 1
ЧТО МЫ НЕ ЗНАЕМ О НИХ? Тёмная сторона известных личностей
5 дней назад 01:30:17 1
С ЭТИМ НАДО КОНЧАТЬ - Жак Фреско
6 дней назад 00:00:00 1
ОЧЕНЬ КРАСИВАЯ МУЗЫКА ЛЮБВИ! Романтическая любимая музыка, она Невероятно Чарующая! Beautiful Music
1 неделя назад 00:00:12 1
Kristen Stewart🥰 Cute😘 Whatsapp Status 💞🥀❤️|| #shorts #youtubeshorts #viral
1 неделя назад 00:12:59 2
Второстепенный персонаж: разбор Чарли из фильма «Сумерки». Чарли - хороший отец?
1 неделя назад 00:36:10 1
ИЛЬЯ БЛЕДНЫЙ — САМЫЙ ЧАРУЮЩИЙ ГОЛОС РОССИИ
1 неделя назад 00:00:15 1
САМОЕ НЕУДАЧНОЕ ОБНОВЛЕНИЕ НА ПРОВИНЦИИ? | MTA Province Demo
1 неделя назад 00:00:00 1
Чарующая и очень вдохновляющая музыка любви Сергея Чекалина! КРАСИВАЯ ЛЕТНЯЯ МУЗЫКА Beautiful music
1 неделя назад 12:59:05 1
Молитвы Центра Трансформации 24 /7
1 неделя назад 01:00:37 8
Эти трогательные чарующие мелодии дарят Мир Душе, вызывая желание Жить! Музыка Сергея Чекалина
1 неделя назад 00:09:37 1
Мир Танков: Своей стихий 💥 3 777 💥
1 неделя назад 00:17:50 1
САМОЕ ДЛИННОЕ ПВП ЗА ВСЁ ВРЕМЯ ⚡ КВ САНРАЙС ⚡ SUNRISE
2 недели назад 00:47:11 1
Général(2s) Jean-Bernard Pinatel: ’’Cette guerre ne peut pas être gagnée par les Ukrainiens’’.
2 недели назад 01:29:11 1
Пастор Андрей Шаповалов «Формула счастья» (Маннхайм Германия)
2 недели назад 00:59:53 1
Пастор Андрей Шаповалов «Попранная церковью Жертва Христа»