Very likely, but to say more we would need details on PROLOG calling conventions.