All stubs should be actually written in CFG form using some internal instructions, this way they will be platform-independent and less error-prone.