Ian, The idea is to create a program database of the compiled program on a full compile. Then when asked to re-compile with the edit-and-continue switch, it only looks for changed code and compiles those few lines. Everything else it needs to carry out compilation is there from previous full-compile as was originally parsed, or from subsequent edit-and-continue compiles which updated the database.
The resulting changes are passed to gdb for insertion into the running program's memory in real-time. On Sun Jul 18th, 2010 2:45 AM EDT Ian Lance Taylor wrote: >Rick Hodgin <foxmuldrs...@yahoo.com> writes: > >> To my knowledge, GCC does not currently support any edit-and-continue >> abilities. Is this still true? And if so, are there any plans to introduce >> it at some point? > >I don't see how it makes sense to add edit-and-continue to gcc. >Compilation times are too slow, but they aren't *that* slow. Are you >thinking about gdb? Or the linker? > >Ian