track spikes have really thin bottoms so will really hurt your calves when doing xc. But you can use xc spikes on the track. I found that racing in my track spikes is ok but they get uncomfy after about 1500m because of the thin bottoms.
Apparently more and more people are starting to use track spikes for XC as they tend to be lighter... I'd try and avoid anything like sprinters spikes though which (I may stand corrected) have a certain amount of form to them...
Sprinter spikes have nothing at the heel to land on other than a bit of thin stiff plastic as sprinters never land on their heels. Middle/long distance would be much better. But as there are spikes specifically for XC I'm sure there is a good reason that they are a bit heavier.