kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #10632
Re: Call for help to compile a small test program with g++ version 4.7.3 and more.
My test on a stock debian 7 32 bit VM (fresh install, all updates etc)
Now with the Boost 1.53 from kicad directory.
-O0 and -O1 give 12 corners
-O2 and -O3 give 0 corners
--build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.7.2 (Debian 4.7.2-5)
My machine is a VM (Virtualbox latest version, 4.2.12)
Running on a i7 CPU
cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 26
model name : Intel(R) Core(TM) i7 CPU 950 @ 3.07GHz
stepping : 5
cpu MHz : 3104.133
cache size : 6144 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 4
apicid : 0
initial apicid : 0
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 5
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 rdtscp lm
constant_tsc pni ssse3 lahf_lm
bogomips : 6208.26
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
g++ -Wall -O3 -I /home/user/workspace_kicad/kicad.bzr/include
test_polygon_diff.cpp
user@debian:~/Documents$ ./a.out
// polyset polygons count 0
g++ -Wall -O2 -I /home/user/workspace_kicad/kicad.bzr/include
test_polygon_diff.cpp
user@debian:~/Documents$ ./a.out
// polyset polygons count 0
g++ -Wall -O1 -I /home/user/workspace_kicad/kicad.bzr/include
test_polygon_diff.cpp
user@debian:~/Documents$ ./a.out
// polyset polygons count 1
**** polygon 0, corners count 12
g++ -Wall -O0 -I /home/user/workspace_kicad/kicad.bzr/include
test_polygon_diff.cpp
user@debian:~/Documents$ ./a.out
// polyset polygons count 1
**** polygon 0, corners count 12
On Mon, Jun 17, 2013 at 6:52 PM, Dick Hollenbeck <dick@xxxxxxxxxxx> wrote:
> On 06/17/2013 11:29 AM, Dick Hollenbeck wrote:
>> Jean-Pierre,
>>
>>
>> I get a 12 point polygon with 4.7.3 regardless of optimization setting, -01, -02, -03
>> using a *64 bit* program on linux.
>>
>> With some additional install I can do a 32 bit test also.
>
>
> Did that install, and found that the 3 programs compiled as *32 bit* also generate a 12
> point polygon with 4.7.3. The three programs were made using different optimizations,
> -O1, -O2, -O3.
>
>
>
>>
>>
>> Thanks,
>>
>> Dick
>>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help : https://help.launchpad.net/ListHelp
References