The ASX 200 posted a small gain in a big week of company profits.

ASX posts modest gains

The Australian sharemarket struggled higher as investors digested the first big week of reporting season.