~/talk

C++ in Early Boot

Talkat Core C++ 2025 · on Sunday, 2025-10-19· [c-and-cpp, embedded-and-hardware]
links:none on file
slides:none on file

Adds C++ support to U-Boot for an NXP i.MX ARM target to change the boot prompt; compiles with a cross‑compiler and modified Makefiles, links against ETL instead of libstdc++, implements missing runtime bits (abort, __dso_handle, __cxa_guard, static constructor invocation via custom placement new), and hacks around missing C library pieces. Encountered about 1,200 compilation errors from including <string>, needed a newer GCC, and increased early‑stage code by ~2–3 KB against a 4 KB loader limit. It works but costs significant maintenance and risk.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 1:09Survey of C++ in boot solutions
  3. 9:03Adding C++ to U-Boot
  4. 11:37Standard library challenges
  5. 15:58Compiler and runtime issues
  6. 21:41Linking and ABI requirements
  7. 24:17Static initialization and threads
  8. 27:32Cost of C++ in early boot
  9. 31:10Key takeaways and trade-offs
  10. 35:03Q&A and conclusion
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.