Wouldn't it be more reasonable to fit already existing, high-velocity guided missiles that reach 3km/s or more, with modified and maybe upscaled version of long rod penetrators used by tank guns, than to develop extremely energy-demanding railguns?
valid question