in reply to why the perl complied code takes more memory?
Its unknowable (unless you're a c-expert ), and there really isn't anything you can do about it