I took a bio-magnesium supplment that I got from my naturopath, for the first 20 weeks of my pg.
Looking back at the leg cramps I had in labour, it would have been a good idea to stick with them for the whole pg.