Hello Dave and all,

I have started reading on the Complex and Double bindings you pointed in
your previous email.
I am still trying to get around the wrapping procedure.

I want to ask how to compile these files.

I ll probably need g++, but what args am I passing?
Also, shall I place them in the same directories as Complex and Double?
Finally,since GMP is also ported to C++ from C, I need to pass these two
library flags
" --lgmpxx -lgmp" and (if it was for C++ code)    #include <gmpxx.h>. Is
this possible?

Thanks again,
Konstantina



2014-03-01 20:34 GMT+00:00 David P Grove <gro...@us.ibm.com>:

> Konstantina Panagiotopoulou <kwno...@hotmail.com> wrote on 03/01/2014
> 12:00:55 PM:
>
> >
> > I was wondering if there are any bindings of X10 to the GNU multiple
> > precision library (gmp).
> > Or, if there is some other library to handle arbitary precision in X10.
> >
>
> Hi,
>
>  As far as I know, we don't have bindings to gmp or to any other arbitrary
> precision library.  However, this would certainly be an interesting
> capability to have and we would welcome contributions.
>
>  I would suggest looking at the implementation of x10.lang.Complex.  For
> Native X10 (X10 compiled to C++) we map Complex to std::complex.  My
> initial guess is that a  binding to gmp would mainly consist of similar
> classes for each of the types in gmp.
>
>  There are two parts to this implementation:
>  (1) The X10-level API (x10.runtime/src-x10/x10/lang/Complex) which
> declares Complex as a NativeRep class and has @Native implementations for
> C++.  If you only want to wrap a native implementation, you would do
> something more like Double.x10 (all methods are native, no X10 body).
>  (2) The C++ level implementation of the @NativeRep class
> (x10.runtime/src-cpp/x10/lang/Complex.{cc,h}).
>
>
> --dave
>
>
>
> ------------------------------------------------------------------------------
> Flow-based real-time traffic analytics software. Cisco certified tool.
> Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
> Customize your own dashboards, set traffic alerts and generate reports.
> Network behavioral analysis & security monitoring. All-in-one tool.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
> _______________________________________________
> X10-users mailing list
> X10-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/x10-users
>
>
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to