~/talk

Infiltrating a Code Base: Moving Toward a Better C

Talkat CppCon 2019 · 2019-09-15..09-20· [software-architecture]
links:none on file
slides:none on file

Practical steps for migrating C code toward safer, low-overhead C++: replace fragile macros → real functions (compiler shows identical inlining), prefer scoped constants and declare variables where used so compilers reuse temporaries, mark inputs const everything to let the optimizer remove work, and replace implicit globals with accessors to locate mutations before converting to objects. Several before/after compiler listings demonstrate no performance regressions; examples target embedded toolchains and C89/C99 constraints with concrete refactor patterns.

AI-written summary · about

  1. 0:00Introduction
  2. 0:13Motivations for code change
  3. 6:09Compile-time constants
  4. 6:20Pseudo-functions
  5. 11:06Constant scoping
  6. 11:24Reducing function size
  7. 17:33Polymorphism in C
  8. 22:24Conclusion
  9. 23:51Q&A
  10. 24:27Final thoughts
  11. 25:50Resources
  12. 26:01Q&A
  13. 26:12Closing
~/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.