From the Super Mario Wiki, the Mario encyclopedia

Star Bits[edit]

You can break the boulders by spinning the red spot, but only the first three times you do this, you are given Star Bits. After that, nothing. Chomps in the games act similar, but their Star Bit supply gradually runs down from 6 about 5 times, to 1 about twice, then nothing. I am not trying to say Boulders and Chomps are related.
The preceding unsigned comment was added by 1870163 (talk).

Wario Land[edit]

Is there any official source that says the "boulders" in Wario Land: Super Mario Land 3 are actually boulders? The non-spiked ones look to me like giant berries, and the spikes ones just seem to be spiked balls.