Re: Assemblers are for hiding your work , not for faster code .
- From: John Devereux <jdREMOVE@xxxxxxxxxxxxxxxxxx>
- Date: Fri, 12 Jan 2007 16:32:33 +0000
John Larkin <jjlarkin@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> writes:
On Fri, 12 Jan 2007 12:46:57 +0000, John Devereux
<jdREMOVE@xxxxxxxxxxxxxxxxxx> wrote:
John Larkin <jjlarkin@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> writes:
The point is not to be fast, but to be right.
<SNIP>
OK, show us some code.
unsigned long long a;
.
.
.
.
a /= 10;
And yes, all good people hate C.
:)
How many bytes does that compile to? What's the execution time?
"The point is not to be fast, but to be right."
(Of course the answer to you questions will depend on the
processor. For me, on an ARM7 CPU, the 32 bit version compiled into a
few inline instructions. But the 64 bit version called a library
routine).
How many bits in a "long long"?
The C standard guarantees at least 64. You can also use uint64_t
(instead of long long), if the platform supports it.
--
John Devereux
.
- Follow-Ups:
- Re: Assemblers are for hiding your work , not for faster code .
- From: John Larkin
- Re: Assemblers are for hiding your work , not for faster code .
- References:
- Assemblers are for hiding your work , not for faster code .
- From: werty
- Re: Assemblers are for hiding your work , not for faster code .
- From: ian . okey
- Re: Assemblers are for hiding your work , not for faster code .
- From: Ian Bell
- Re: Assemblers are for hiding your work , not for faster code .
- From: John Larkin
- Re: Assemblers are for hiding your work , not for faster code .
- From: Didi
- Re: Assemblers are for hiding your work , not for faster code .
- From: John Larkin
- Re: Assemblers are for hiding your work , not for faster code .
- From: Didi
- Re: Assemblers are for hiding your work , not for faster code .
- From: werty
- Re: Assemblers are for hiding your work , not for faster code .
- From: John Larkin
- Re: Assemblers are for hiding your work , not for faster code .
- From: John Devereux
- Re: Assemblers are for hiding your work , not for faster code .
- From: John Larkin
- Assemblers are for hiding your work , not for faster code .
- Prev by Date: Re: Assemblers are for hiding your work , not for faster code .
- Next by Date: Opportunity with global leader in audio-visual electronics and Information Technology
- Previous by thread: Re: Assemblers are for hiding your work , not for faster code .
- Next by thread: Re: Assemblers are for hiding your work , not for faster code .
- Index(es):
Relevant Pages
|