Re: Large-Number Math DLL?
- From: Ertugrul Soeylemez <do-not-spam-me@xxxxxxxx>
- Date: Wed, 28 Mar 2007 16:20:41 +0200
"David Fabian" <david.m.fabian@xxxxxxxxxxxxx> (07-03-28 05:00:49):
The big problem here is that Windows is not too well supported by
most good bignum libraries.
I will probably end up enhancing a bignum library that I wrote myself.
It runs under Windows XP, but it currently handles only unsigned
integers... and I now need floating-point math.
Once you have integer functions ready, it's easy to enhance this to get
floating point. Use a single bit for the sign, a big unsigned integer
as the mantissa and a normal (i.e. small) signed integer for the
exponent.
By the way, the C++ code that I downloaded from http://gmplib.org/
hangs up Visual Studio 2005 (but this is typical of source code I get
from the Internet). On the other hand, there might be some C++
configuration issues that are omitted from the ReadMe file, because
they are obvious to a C++ programmer.
This is not typical to the source code, it's typical to Visual Studio,
because firstly the compiler is buggy, and secondly Visual C++ is not
real C++. Many C++ programs conforming to standards won't compile as
Visual C++ code. This most likely includes GMP.
You will want to grab the Min-GW version of GCC. It's supplied with
Dev-C++ [1], a free C/C++ development environment for Windows
(suitable for some other languages as well, but don't ask me). By
the way, VB is not the right language to write fast code.
On my job, I mostly use VB6, because I write so many user-interfaces.
For speed, I use assembly (although I have not yet written anything
for 64-bit processors).
In most cases, it's sufficient to write high speed code in C. Assembler
only makes sense if you have a very good reason not to trust the
compiler to optimize well. It's even true that the compiler generally
generates even better code than you. This is however only true for
`middle level' languages like C/C++.
Regards,
Ertugrul Söylemez.
--
From the fact that this CGI program has been written in Haskell, it
follows naturally that this CGI program is perfectly secure.
.
- References:
- Large-Number Math DLL?
- From: David Fabian
- Re: Large-Number Math DLL?
- From: Ertugrul Soeylemez
- Re: Large-Number Math DLL?
- From: David Fabian
- Re: Large-Number Math DLL?
- From: Ertugrul Soeylemez
- Re: Large-Number Math DLL?
- From: David Fabian
- Large-Number Math DLL?
- Prev by Date: Re: Large-Number Math DLL?
- Next by Date: Re: ANNOUNCE: no more prime numbers
- Previous by thread: Re: Large-Number Math DLL?
- Next by thread: Re: Large-Number Math DLL?
- Index(es):
Relevant Pages
|
Loading