C89cc.sh – standalone C89/ELF64 compiler in pure portable shell
https://gist.github.com/alganet/2b89c4368f8d23d033961d8a3deb5c19
C89cc.sh – standalone C89/ELF64 compiler in pure portable shell
https://gist.github.com/alganet/2b89c4368f8d23d033961d8a3deb5c19
Hmm. I'm really wishing I had multiple return values but not sure I want to deal with the plumbing yet. Thinking of adding some syntax for stack-allocated structures as an incremental improvement.
Maybe something like:
var x Thing = @;
At some point once there's some type inference and the frontend is a bit smarter:
var x = @ Thing;
Как найти UB, которое никто не хочет замечать: разбираем clang-tidy изнутри
Привет, Хабр! Меня зовут Анастасия Черникова, я занимаюсь разработкой компиляторных технологий и инструментов на базе LLVM в Синтакоре. Неопределенное поведение (undefined behavior, UB) по-разному выглядит с точки зрения компилятора и разработчика. Для первого оно, как правило, открывает дополнительные возможности для оптимизации. Для программиста же UB может стать проблемой, особенно если оно остается незамеченным и не учитывается при разработке. В этой статье рассмотрим подход к поиску UB с использованием статического анализа. В качестве примера я использую clang-tidy: сначала разберу, как устроены существующие чекеры и как работают AST matchers, а затем покажу, как расширять их и добавлять собственные проверки, если стандартных возможностей оказывается недостаточно. Отправимся на поиски и поимку UB →
https://habr.com/ru/companies/yadro/articles/1017930/
#llvm #clangtidy #ast #check #cpp #undefined_behavior #UB #compiler #sanitizers
☕ and some staring...
☕ and some staring...
Forth VM and compiler written in C++ and Scryer Prolog
[ #compiler ] I wrote a study notes blog post on Day 9 of Matt Godbolt's Advent of Compiler Optimisations 2025 series: "Induction variables and loops".
Read more here: https://gapry.github.io/2026/03/31/Advent-of-Compiler-Optimisations-Study-Notes-09.html
[ #compiler ] I wrote a study notes blog post on Day 8 of Matt Godbolt's Advent of Compiler Optimisations 2025 series: "Going loopy".
Read more here: https://gapry.github.io/2026/03/31/Advent-of-Compiler-Optimisations-Study-Notes-08.html
[ #compiler ] I wrote a study notes blog post on Day 7 of Matt Godbolt's Advent of Compiler Optimisations 2025 series: "Division by a Constant".
Read more here: https://gapry.github.io/2026/03/31/Advent-of-Compiler-Optimisations-Study-Notes-07.html