Re: Large-Number Math DLL?



"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.
.



Relevant Pages

  • Re: Compilation of Code in Microsoft Visual Studio .NET and a couple of other Microsoft .NET questio
    ... I've just recently installed the Visual Studio .net Professional ... part of visual studio, not the compiler. ... then does that mean that I have found a security flaw in .NET or is it just ... Visual Studio .NET will that executable require the .NET framework to be ...
    (microsoft.public.dotnet.general)
  • h file changed and compilation does not detect it
    ... My problem is that when I change h file the Visual Studio 6 compiler does ... not detect it and does not compile the cpp files that includes it. ... I decided to convert the dips and dsw to visual studio 7.1 vcproj files. ...
    (microsoft.public.vc.ide_general)
  • Re: Moving to MSVC++.Net
    ... >> LIB folders from VC6. ... It requires tweaking a few VC6 MFC headers to make ... An easier way to get Visual Studio 2003 and 2005 C/C++ compilers to build ... You won't be able to use the 64-bit compiler bundled with the PSDK on your ...
    (microsoft.public.vc.mfc)
  • compiler crashes and cant run asp projects anymore
    ... Visual Basic .NET compiler is unable to recover from the following error: ... But I get this problem only when I start visual studio 2003. ... I create a new asp project, with just one button on the startup form but ... The problem doesn't only occur when debugging, ...
    (microsoft.public.dotnet.general)
  • Re: __VA_ARGS__ and the DDK compiler
    ... his questions are related more to the difference between MS and the ISO standard. ... If his questions concerned a Visual Studio product then microsoft.public.vc.language would be the place for them, but it looked to me like he might be using a compiler that came in a DDK. ...
    (microsoft.public.development.device.drivers)