[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: my favorite bug :-)
From: |
Masamichi HOSODA |
Subject: |
Re: my favorite bug :-) |
Date: |
Fri, 01 May 2015 23:49:43 +0900 (JST) |
>>> There is a big difference: If you compile a .c file, the .o files
>>> stays by default; the compiler doesn't remove it.
>>
>> Uh, wrong?
>>
>> cd /tmp;echo "main(){return 0;}" >gega.c;gcc -o gega gega.c;ls gega*
>> gega gega.c
>
> I've meant using option `-c' of the compiler. BTW, if you specify
> option `-o', does gcc create an intermediate file `gega.o' that
> overwrites another file `gega.o' in the compilation directory?
If I understand correctly,
in this case, gcc does not use gega.o.
gcc uses /tmp/ccXXXXXX.o etc.
(XXXXXX is replaced by random unique charactor by mkstemp.)
gcc removes it.
- Re: my favorite bug :-), Martin Tarenskeen, 2015/05/01
- Re: my favorite bug :-), Martin Tarenskeen, 2015/05/01
- Re: my favorite bug :-), Werner LEMBERG, 2015/05/01
- Re: my favorite bug :-), D'Arcy J.M. Cain, 2015/05/01
- Re: my favorite bug :-), Werner LEMBERG, 2015/05/01
- Re: my favorite bug :-), David Kastrup, 2015/05/01
- Re: my favorite bug :-), Werner LEMBERG, 2015/05/01
- Re: my favorite bug :-), David Kastrup, 2015/05/01
- Re: my favorite bug :-), Werner LEMBERG, 2015/05/01
- Re: my favorite bug :-), David Kastrup, 2015/05/01
- Re: my favorite bug :-),
Masamichi HOSODA <=
Re: my favorite bug :-), Masamichi HOSODA, 2015/05/01