[so] [Tema1][Test4] Comparare dubioasa a binarelor
Razvan Deaconescu
razvan.deaconescu at cs.pub.ro
Sat Mar 28 00:51:08 EET 2009
On Fri, 2009-03-27 at 14:25 +0200, Eugen wrote:
> La testul 4 totul merge mai putin compararea binarelor :
> running test_04 bash
> test_err
> test_out
> running test_04
> test_err
> Files test_04_out/main.exe and test_04_ref/main.exe differ
> failed
> done test_04
>
>
> Cred ca diff se uita dupa data la care au fost create altfel nu imi
> explic ( au aceeasi dimensiune )
> Chiar daca fac doua executabile din acelasi fisier sursa si diff tot
> spune ca sunt diferite:
> $ gcc -o m main.c
>
> $ gcc -o n main.c
>
> $ ls
> m.exe main.c main.exe n.exe out.txt out2.txt out3.txt
>
> $ diff m.exe n.exe
> Files m.exe and n.exe differ
>
>
> E ceva dubios la mine sau asa ar trebui sa se comporte ? Ca testul da
> failed din cauza diferentei binarelor
Esti pe Linux? Pe sistemul meu[1] nu are loc problema cu pricina:
---
razvan at valhalla:/tmp$ rm test test2
razvan at valhalla:/tmp$ gcc -Wall -o test2 test.c
razvan at valhalla:/tmp$ gcc -Wall -o test test.c
razvan at valhalla:/tmp$ ls -F test*
test* test.c test2*
razvan at valhalla:/tmp$ diff test test2
razvan at valhalla:/tmp$
---
Razvan
[1]
---
razvan at valhalla:/tmp$ cat /proc/cpuinfo | head -5
processor : 0
vendor_id : AuthenticAMD
cpu family : 15
model : 104
model name : AMD Turion(tm) 64 X2 Mobile Technology TL-64
razvan at valhalla:/tmp$ uname -a
Linux valhalla 2.6.26-1-amd64 #1 SMP Fri Mar 13 17:46:45 UTC 2009 x86_64
GNU/Linux
razvan at valhalla:/tmp$ gcc --version | head -1
gcc (Debian 4.3.2-1.1) 4.3.2
razvan at valhalla:/tmp$ getconf GNU_LIBC_VERSION
glibc 2.7
---
More information about the so
mailing list