Back in the day I had W2K Pro running (very slowly) on a 66MHz 486. XP was only 18 months or so behind that, and the system requirements probably weren't much different. Wouldn't wanted to have to use it for anything though.
That setup was actually faster than building kotlin projects on my current mac M1 laptop. Of course it's doing more stuff these days but build times seem a constant through the ages. Better hardware just leads to more complicated tooling.
It takes four times 10 seconds to compile the Pascal code to multiple platforms and like 4 minutes to run gradle and compile the Kotlin code.
I do not know why it would be so slow