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)
  • Re: Visual Studio Professional Edition purchase
    ... In the latter three you are in fact creating forms and things like that almost exact in the same way as you did with VB6. ... Beside that there is in Visual Studio the original C++ as it was in Visual Studio 6 using MFC. ... It is not my goal to start a discussion, so if you should go to a C language is your own decission and it is never wrong to learn both languages. ... and HTML (if you can call HTML programming). ...
    (microsoft.public.dotnet.languages.csharp)
  • 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)
  • Re: hmm..interesting
    ... I used to be a professional software developer on both Unix/Linux (all ... flavours) and Windows (writing CFD and Valve-train dynamics software, ... the fact that Visual Studio allows you to get away with fairly sloppy ... difficult to find a C compiler that *doesn't* have vendor-specific ...
    (comp.sys.acorn.hardware)

Loading