flat assembler
Message board for the users of flat assembler.

Index > Main > Anyone using GMP with 64 bit?

Author
Thread Post new topic Reply to topic
magicSqr



Joined: 27 Aug 2011
Posts: 105
magicSqr
Hi,

Can the gmp bignum library be used with a 64-bit app ?

The following compiles ok but when trying to run (or debug with winDbg(X64)) I get an "The application was unable to start correctly".

Code:
format PE64 console
entry start

include '%fasminc%\win64ax.inc'

struct MP_INT
     _mp_alloc  dd ?
     _mp_size   dd ?
     _mp_d      dd ?
ends

mpz_t fix MP_INT

;**************************************************************************************************
section '.text' code readable executable

    start:
        cinvoke mpz_init_set_ui, m, 23039
    .finished:
        invoke  ExitProcess, 0


;**************************************************************************************************
section '.data' data readable writeable

m               mpz_t

;**************************************************************************************************
section '.idata' import data readable writeable


library libgmp, 'libgmp-3.dll',\
        kernel32, 'kernel32.dll'

import libgmp,\
        mpz_init_set_ui, '__gmpz_init_set_ui'

include '%fasminc%\api\Kernel32.inc'
    
Post 19 Aug 2012, 22:17
View user's profile Send private message Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3170
Location: Denmark
f0dder
You'll need to find (or build) a 64-bit version - but that should be possible, yes.
Post 20 Aug 2012, 16:50
View user's profile Send private message Visit poster's website Reply with quote
kalambong



Joined: 08 Nov 2008
Posts: 165
kalambong
According to http://gmplib.org/

Quote:
GMP's main target platforms are Unix-type systems, such as GNU/Linux, Solaris, HP-UX, Mac OS X/Darwin, BSD, AIX, etc. It also is known to work on Windows in both 32-bit and 64-bit mode.
Post 22 Aug 2012, 09:04
View user's profile Send private message Reply with quote
jack2



Joined: 06 Jul 2008
Posts: 31
jack2
you can get x64 mpir/mpfr binaries from here http://www.ospv.com/mpir-and-mpfr/
Post 22 Aug 2012, 21:11
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.