On Tuesday 26 June 2007 15:05, Andrew Chan wrote:
> Some operating systems overwrite the same file location for the same file
> name and some others write to a different location and then rename the
> file.
Sorry I forgot to say this important information: I am using the Intel
compiler on Linux x86_64 (I assume in the end the actual linking is done by
ld). I tested and recompiling an executable (even after changing it so the
size of the executable changes) keeps the same inode (Linux's internal file
id as obtained via "ls -i"), so it does seem like the executable is
overwritten in-place. I would have still expected the OS to be wise enough to
protect running jobs from seing any changes but it doesn't seem that way.
Thanks,
Aleks
|