Green’s Dictionary of Slang

hack v.6

[SE hack, to cough]

(US campus) to vomit.

[US]G. Underwood ‘Razorback Sl.’ in AS L:1/2 60: He makes me want to hack.
[US] N. Flexner Disassembled Man [ebook] I woke myself up by hacking a pint of blood.
[Scot]T. Black Gutted 82: The boys were silent enough, save for the times when they started hacking their guts up.