In Pokémon Emerald, head to Mauville City and find the house near the Pokémon Mart. Talk to the professor there, and after a bit of chatter he will give you the Rock Smash HM. Teach it to a compatible Pokémon and you can start smashing those cracked rocks.