Re: PowerBasic rocks!



On a sunny day (Fri, 15 May 2009 12:29:21 -0500) it happened James Waldby
<no@xxxxx> wrote in <Ybedne7peojsO5DXnZ2dnUVZ_vOdnZ2d@xxxxxxxxxxx>:

On Fri, 15 May 2009 05:23:53 -0700, panteltje wrote:

Even with your values I still have problems with this :
[snip program]
When I run that on the eeePC with 512MB RAM, I get these times:

eeepc-unknown:/root> ./test2
memory needed=384 MB
mem=0xa8a54008
b=0xa1041008
Time used is 13920337 us (13.9203 s). Ready

On my system*, an example output of ./time-snipped-prog is:
memory needed=384 MB
mem=0x2aaaaaae8010
b=0x2aaab9f0d010
Time used is 2891413 us (2.8914 s).
Ready

-------------------------------------------
*Some extracts from free and per-processor /proc/cpuinfo on my system:
total used free
Mem: 3936312 3537024 399288
model name : AMD Athlon(tm) 64 X2 Dual Core Processor 5200+
cpu MHz : 1000.000
bogomips : 2042.00
-----------------------------

The program shown below is shorter and faster than the snipped
program (shorter because of formatting, no error checks, and no
bother with incrementing pointers, which can get in the way of
compiler optimization). Eg, in repeated runs, 1.7760 s was the
least time from the snipped program, while <1.6 seconds was typical
for program below, whose output is like following:

Causes reboot of my eeePC :-(


.



Relevant Pages