to work very hard to achieve sth
slog / sweat / work your guts out
I slogged my guts out for the exam.
Definitions from the Oxford Advanced Learner's Dictionary, 9th edition