axiom-developer
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Axiom-developer] RE: algebra Makefiles withexplicitdependencies, b


From: William Sit
Subject: Re: [Axiom-developer] RE: algebra Makefiles withexplicitdependencies, bootstrap, fixed-points etc.
Date: Mon, 17 Jan 2005 12:28:48 -0500

(21) -> for i in 10^32 .. 10^32+5 repeat print i
   100000000000000000000000000000000
   100000000000000000000000000000001
   100000000000000000000000000000002
   100000000000000000000000000000003
   100000000000000000000000000000004
   100000000000000000000000000000005
                                        Type: Void

William Sit wrote:
> 
> Let's not forget that 2^32 is over 4 billion.
> 
> William
> --
> 
> Ralf Hemmecke wrote:
> >
> > This sounds like forbidding
> >
> > for i in 10^32 .. repeat ....
> >
> > or do I misunderstand something?
> >
> > Ralf
> >
> > root wrote:
> > > Steve,
> > >
> > > I don't know if there is an actual statement to the effect that
> > > the upper bound on a loop would be a register-sized number (32
> > > or 64 bits) but at 6Mhz it seemed impossible that one could
> > > run a loop of any consequence for greater than 2^32 or 2^64
> > > iterations. If you wanted to do that you'd have to do the
> > > looping using some other construct. In general it is safe to
> > > assume that the upper bound of the register size cannot be
> > > exceeded. There is a practical performance difference to
> > > be gained by using (declare (fixnum  as the compiler can,
> > > in the best case, assign a register to the loop variable.
> > >

-- 
William Sit
Department of Mathematics....Email: address@hidden
City College of New York................Tel: 212-650-5179
Convent Ave at West 138th Street........Fax: 212-862-0004
New York, NY 10031..Axiom, A Scientific Computation Sytem
USA............... http://www.nongnu.org/axiom/index.html




reply via email to

[Prev in Thread] Current Thread [Next in Thread]