FFI related musings

 
While musing on FFI interfacing issues like C++ name mangling, I found
an interesting article "Beautiful Native Libraries" about the other
side of the fence of designing a nice library interface. I learnt some
things maybe of interest to others - perhaps for pushing upstream into
external libraries to ease their use by our FFI.
http://lucumr.pocoo.org/2013/8/18/beautiful-native-libraries/
Some of the ideas seem applicable to maybe one day helping the VM be
embeddable in other programs.

Also, for the occasional idea of in-Image parsing of C include files,
a link to a basic algorithm for macro expansion.
http://www.spinellis.gr/blog/20060626/

And while I haven't read the following, it was interesting to skim
"Calling conventions for different C++ compilers and operating
systems"
http://www.agner.org/optimize/calling_conventions.pdf

cheers -ben

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: