Mail Archives: djgpp/1996/04/25/12:03:43
On Thu, 25 Apr 1996, Charles Brasted wrote:
> I am not sure if this is related to djgpp or not, as I only use my computer
> for djgpping, I suspect it is - I am compiling economy class, so my 4000
> line program is s-l-o-w. If I get an error come up I simply abort the
> compilation to save time. Every few days, my hard drive fills up with
> invisible files, which are essentially truncated versions of my code. It is
> easy to fix, (using scandisk), but a bit annoying, as I am very close to my
> HD capacity and if it happens too much I run out of space.
You never tell, but if I understand correctly, you have a memory-starved
machine. If so, when you compile, GCC pages to disk, i.e. uses the swap
file. When you abort it, the swap file is not deleted and the filesystem
is not updated. Any program that is aborted in the midst of writing to a
file will produce such errors. So you should:
1) try to avoid doing this
2) if you must do it, run scandisk or any other disk repairing
tool after every abort (that way, you will also be sure if this is
DJGPP's fault)
3) use GCC switches to make it do the minimum work, so you could
wait until it finishes. These switches are:
-Werror treats any warnings as errors
-fsyntax-only only checks the syntax correctness
(If there is a switch that makes gcc exit after n errors, use that switch
with n = 1; I can't find such a switch in the docs, but maybe I don't
look hard enough.)
- Raw text -