ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Denis Magda <dma...@gridgain.com>
Subject Re: C++ marshalling.
Date Wed, 27 May 2015 06:28:26 GMT
On 5/27/2015 12:14 AM, Branko ─îibej wrote:
>   2. Use a C++ parser (e.g., from LLVM) to generate a machine-readable
>      structure description, and generate the marshalling code from that.
>
> Option 2 is by far the most user-friendly, because users could just
> point the generator to their existing class definitions. But it's
> probably a huge amount of work.
Branko,

This is really an awesome solution if we want to perform marshalling 
automatically.

Apple extensively uses libclang for code analysis and generation in its 
Objective-C runtime.
We can go the same way. Here is a good introductory article on clang: 
http://szelei.me/code-generator/

--
Denis


Mime
View raw message