which functions in the rtl to dummy lazarus / 64-FPC development ---------------------------------------------------------------------- Key-Real · 2024-07-23 18:47 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. So I need the list of functions that are OS depended. Pls list them all ---------------------------------------------------------------------- BSaidus · 2024-07-23 19:02 Eh, open system, sysutils, ... units or use chm help to find all functions. But, why do you need to do that ? ---------------------------------------------------------------------- TRon · 2024-07-24 06:35 Quote from: Key-Real on July 23, 2024, 08:47:05 pmI 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). ---------------------------------------------------------------------- Key-Real · 2024-07-24 07:14 Quote from: TRon on July 24, 2024, 08:35:58 amWhat 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). But I have to deliver some .a libs. On the other hand I will put thouse libs in any case in the RTL Folder. Thouse libs are precompiled, no source just headers. So You suggest to do it this way, OK I'll do that. ---------------------------------------------------------------------- Key-Real · 2024-07-24 07:23 have somebody a list of functions I have to implement, pls? ---------------------------------------------------------------------- Thaddy · 2024-07-24 07:37 There is a wiki entry about writing a minimal system, but you know that already because several people already pointed you to that. start here: https://wiki.lazarus.freepascal.org/RTL_development_articles And read the articles about embedded targets. The best info is of course the compiler sourcecode, which everybody that wants to write a compiler read first.