James wrote:
>
> On Mon, 10 Aug 1998, Niels Hald Pedersen wrote:
>
> -Is this true ?
> -
> -On my system, it is possible to compile/link a new (changed) version of
> -a program, while a copy is still running. After the link, the running
> -old copy no more have a valid executable, thus. How come ?
>
> because the program is probably small enough to get loaded into
> ram all in one go.
No. GCC (or rather gnu ld) removes the old executable before building a
new one, and since the old executable is still in use by the running
process it is not physically deleted from disk until the program
terminates. (the filename is deleted, not the file. The actual file is
deleted when the last reference to it is removed).