Hi! It's my very first question posted to mailing lists so please correct me if I am doing something wrong.
I have subscribed to python mailing lists with ar...@mail.ru address (which is mirrored to gmail) but I am writing from sashar...@gmail.com - I don't know if it matters or not. Anyways, question is next: Is there anywhere a minimal working example of an own language translated to shared library, not standalone executable? (I saw standalone example and it worked for me, now I need more :) ) What I need is to make a problem-specific extension written in RPython that is densely integrated with exiting C++ code (quite a big product). Requirements are next: the result has to be a library (.dll and .so: product is cross-platform) with C interface (not executable). Library will be loaded by C++ code and will be called as if it was written in C: calls always come from product threads (but during calls the library can call given callbacks). I know that this is possible because cpyext does it. But cpyext is too big to understand minimal required set of actions for: * declaring target as shared lib, not standalone * running translation with proper arguments (seems like "-shared" is not enough as I get this: [translation:WARNING] target specific arguments supplied but will be ignored: -shared) * declaration of API (I saw decorators but I didn't get if decorator is enough or anything else like function registration is required) If there's no ready example I can create and publish example based on my investigation. But I still need someone's help to answer questions above. Thanks in advance! With respect, Alexander.
_______________________________________________ pypy-dev mailing list pypy-dev@python.org http://mail.python.org/mailman/listinfo/pypy-dev