US fastfood giant McDonald's has said it generated a record US$3.9bn in cash from operations in 2004, up more than $600m over 2003, driven by higher sales and profits at existing restaurants.