I believe free pascal should work with win 7 64 bit. It won't output 64 bit binaries, but the programs you compile will run on a 64 bit OS with no problems.
And Delphi 7 works? I heard that it is has compatibility issues, reported by the OS itself when you begin installation.