[CLN-list] How to find out if libcln is 64-bit
Alexei Sheplyakov
alexei.sheplyakov at gmail.com
Mon Jan 10 18:32:10 CET 2011
Hello,
On Mon, Jan 10, 2011 at 11:08:09AM -0500, Joshua Friedman wrote:
> Is there an easy to to tell if I succeeded in compiling cln to 64 bit on OS X?
a) Check if pointer_bitsize is 64, i.e.
// foo.cc
#include <cln/intparam.h>
#if pointer_bitsize != 64
#error Need 64-bit libcln
#endif
// foo.cc ends here
g++ `pkg-config --cflags cln` -c foo.cc
b) Run
file /path/to/libcln.dylib
c) Disassemble the thing, check if rax, rbx, rsp, r[8,15], etc, are used.
If yes, this is definitely 64-bit code.
Hope this helps,
Alexei
More information about the CLN-list
mailing list