I decided not to implement all the rtl functions like
writeln, blockread, getmem and so no
in my port. The system unit had to be linked against the Psy-Q-SDK.
In case you decide not to implement the minimal required functionality then what is the use of using the FPC compiler in the first place ?
The whole FPC implementation relies on things like getmem and freemem. If these are not implemented then FPC generated code will not run.
That is unless you butcher the whole RTL and write your own custom RTL which again raises the question then why use FPC to begin with.
What you imho should do is link against your custom SDK and use that SDK to implement the required FPC functionality using that SDK (normally it would be OS functionality but I guess that is lacking for PSx e.g. barebones).