~/talk

Coccinelle: Impact and Internals

Talkat GPCE 2023 · 2023-10-22..10-23· [compilers-and-language-design]
links:none on file
slides:none on file

Coccinelle is a pattern-based matcher and transformer for C that turns semantic patches into CTL checks over a per-function control-flow graph and produces token-level edits so unchanged code keeps original spacing. It parses >99% of Linux source without full preprocessing, drove ~9,000 kernel commits, and automates large refactorings (e.g. init_timer→setup_timer: 300/800 then 808/828 matches after rule tuning). The tool outputs patches (spatch) for review or in-place edits.

AI-written summary · about

  1. 0:00Coccinelle introduction
  2. 12:49Why Coccinelle was created
  3. 22:21Semantic patching example
  4. 37:56Handling multiple rules
  5. 41:06Parsing Linux kernel
  6. 55:39Code generation & transformations
  7. 1:04:12Coccinelle's Linux impact
  8. 1:08:49Q&A on language & future
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.