tag:blogger.com,1999:blog-375315255567275930.post4140378824044020376..comments2024-02-15T13:53:46.555+05:30Comments on I Think Tech: How libffi actually works?Brahmana (Srirang)http://www.blogger.com/profile/10677241604486586254noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-375315255567275930.post-21048475499850417212021-05-11T09:10:12.020+05:302021-05-11T09:10:12.020+05:30It's a nice reading. It gives me a much better...It's a nice reading. It gives me a much better understanding of libffi. Thank you!Lee Jiahttps://www.blogger.com/profile/10459074895184496092noreply@blogger.comtag:blogger.com,1999:blog-375315255567275930.post-26053600484178763632009-10-30T18:54:17.202+05:302009-10-30T18:54:17.202+05:30If you intend to create a component/library for pr...If you intend to create a component/library for providing interoperability between Pascal and C, then libffi will be really useful. All you have to do is handle the type conversions.<br /><br />However, if it is just your project, where some pascal code needs to talk to some C code, then I guess libffi will be an overkill. It is the type conversion that will be the killer. <br /><br />OTOH, if the types that move between Pascal and C are just the most trivial ones, then libffi can still be useful, as type conversion for these will be relatively easy.Brahmana (Srirang)https://www.blogger.com/profile/10677241604486586254noreply@blogger.comtag:blogger.com,1999:blog-375315255567275930.post-86143183483725565102009-10-30T06:00:10.436+05:302009-10-30T06:00:10.436+05:30Interesting. Currently, I'm creating an inter...Interesting. Currently, I'm creating an interlanguage solution to my personal project with shared libraries. I have a Pascal class that I use and I simply createe a Pascal shared library that exposes the methods of the class as functions and then use those functions from a C program (using the correct calling conventions, creating a header file, etc.). Would libffi be a better solution?zooplahhttps://www.blogger.com/profile/05844705158556362240noreply@blogger.com