@neia @mvu No GCC uses a GC. It is a simple mark and sweep. It uses a secondary simple program to parse C/C++ headers to create the mark functions automatically.
there are also some uses of obstack in GCC for things like bitmaps inside a pass and strings. And normal dynamic memory allocation (with malloc/new and free/delete) too inside GCC.
Conversation
Notices
-
Embed this notice
pinskia (pinskia@hachyderm.io)'s status on Tuesday, 28-Jan-2025 05:36:08 JST pinskia
-
Embed this notice
Neia (neia@fedi.ikeran.org)'s status on Tuesday, 28-Jan-2025 05:36:09 JST Neia
@mvu@peoplemaking.games I believe GCC uses this strategy for memory management. Everything gets freed when the program exits, which should be good enough, right?
-
Embed this notice
mvu (mvu@peoplemaking.games)'s status on Tuesday, 28-Jan-2025 05:36:10 JST mvu
For #goblinweek someone should make a new programming language: goblang.
It should be a scripting language with no garbage collection, but no other memory management solution either -- the garbage just piles up until your computer crashes.
-
Embed this notice