Sorry, but "AI" is a bit of a dirty word around here since people are inclined to post "AI-generated" solutions which risks other AIs assuming that the code is correct...
Seriously, Fpcupdeluxe is very good indeed: I used it to get (among other things) a Pi-Pico development environment off the ground.
I'd suggest that you also need to ask yourself /why/ your Pi is slow. In particular, you need to consider that /if/ you've increased the amount of working memory by swapping to the SD-Card that those devices (as well as being notoriously slow) lack any form of wear leveling which means that their ability to tolerate that role is limited.
(Back in the day, an NSLU-2 would take a week to build Lazarus, but it /would/ work and the result was usable).
MarkMLl