• # L'affaire est dans Lisaac.

    Posté par . En réponse au message [requete]Test de mémoire sur une machine 64 bits. Évalué à 2.

    ~ $ cat /proc/cpuinfo
    processor : 0
    vendor_id : AuthenticAMD
    cpu family : 15
    model : 35
    model name : AMD Athlon(tm) 64 X2 Dual Core Processor 4400+
    stepping : 2
    cpu MHz : 1000.000
    cache size : 1024 KB
    physical id : 0
    siblings : 2
    core id : 0
    cpu cores : 2
    fpu : yes
    fpu_exception : yes
    cpuid level : 1
    wp : yes
    flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt lm 3dnowext 3dnow pni lahf_lm cmp_legacy
    bogomips : 2010.10
    TLB size : 1024 4K pages
    clflush size : 64
    cache_alignment : 64
    address sizes : 40 bits physical, 48 bits virtual
    power management: ts fid vid ttp

    processor : 1
    vendor_id : AuthenticAMD
    cpu family : 15
    model : 35
    model name : AMD Athlon(tm) 64 X2 Dual Core Processor 4400+
    stepping : 2
    cpu MHz : 1000.000
    cache size : 1024 KB
    physical id : 0
    siblings : 2
    core id : 1
    cpu cores : 2
    fpu : yes
    fpu_exception : yes
    cpuid level : 1
    wp : yes
    flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt lm 3dnowext 3dnow pni lahf_lm cmp_legacy
    bogomips : 2010.10
    TLB size : 1024 4K pages
    clflush size : 64
    cache_alignment : 64
    address sizes : 40 bits physical, 48 bits virtual
    power management: ts fid vid ttp

    ~ $ gcc --version
    gcc (GCC) 4.1.1 (Gentoo 4.1.1)
    Copyright © 2006 Free Software Foundation, Inc.
    Ce logiciel est libre; voir les sources pour les conditions de copie. Il n'y a PAS
    GARANTIE; ni implicite pour le MARCHANDAGE ou pour un BUT PARTICULIER.

    ~ $ uname -a
    Linux 2.6.18-gentoo-r1 #1 SMP PREEMPT Tue Oct 17 20:29:54 CEST 2006 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4400+ AuthenticAMD GNU/Linux

    ~ $ ./a.out
    Pointeur 32 bits : 5c4fd51c -> 5c4fd51f align 32:Yes align 64:No
    Pointeur 16 bits : 5c4fd51a -> 5c4fd51b align 32:No align 64:No
    Pointeur 64 bits : 5c4fd510 -> 5c4fd517 align 32:Yes align 64:Yes
    Pointeur 64 bits : 5c4fd508 -> 5c4fd50f align 32:Yes align 64:Yes
    Pointeur 08 bits : 5c4fd507 -> 5c4fd507 align 32:No align 64:No

    Note au passage :
    CFLAGS/CXXFLAGS -march=k8 -O2 -pipe -fomit-frame-pointer
    CHOST x86_64-pc-linux-gnu