2.3 Downloading FPC sources from Git or zip.This document will try to help you do these things.
Or you want to confirm the compiler you have is the same as the one it produces, possibly running a checksum on the new one to confirm it matches the published one. There are a number of reasons for doing this, including:
While the Free Pascal Compiler comes pre-built for several processor architectures and operating systems, there may be occasions where a pre-built compiler won't do, and you need to build it yourself.