Clang already uses the Intel ABI for it's name mangling, which produces 
names for functions containing their parameter types, if we performed the 
embind on those names we would be able to figure out the parameter types.

On Tuesday, March 4, 2014 2:46:48 PM UTC-8, Chad Austin wrote:
>
>
> Thus, on the C++ side, we need a way to take a C++ signature (like 
> float(const void*, int&)) and turn that into a string ("fii") that we can 
> use to select one of the function tables on the embind side.  Embind would 
> also need the compiler to output a table from signature to the appropriate 
> function table.  The compiler-generated glue would look something like:
>
> var FUNCTION_TABLES = {
>   vi: FUNCTION_TABLE_vv,
>   fii: FUNCTION_TABLE_fii,
>   ...
> };
>
> -- 
> Chad Austin
> Technical Director, IMVU
> http://engineering.imvu.com <http://www.imvu.com/members/Chad/>
> http://chadaustin.me
>
>
>  

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to