Unlike most programs, which just work in Fil-C with zero or no changes, libffi needs to basically be rewritten. Instead of using assembly for reflectively crafting calls it needs to use the Fil-C zcall api. And instead of JITing closures it needs to use the Fil-C zclosure_new api.
Should be fun