As the previous post described, machine guns operate quite differently from rifles, in having rather more of a spray-nozzle path (and almost parabolic at longer ranges) and landing pattern taken by its rounds than the straighter, much more undeviating from a straight, one-follows-the other (as opposed to more up-and-down and side-to-side trajectory of machine gun rounds) path of rounds fired from a rifle.
But machine guns face the problem of overheating. The early machine usually had water-jackets around the barrels that more or less solved this problem and were capable of true sustained fire without interruption. But these guns were very heavy, and very difficult to move about. Much lighter machine guns with changeable barrels go some way to solving this problem, but result in machine guns that are no longer capable of uninterrupted, sustained fire. These guns are gas-operated, and cannot be fitted with water-jackets to keep the barrel cooled sufficiently to allow uninterrupted sustained fire, and so machine guns must be fired in bursts, and with frequent barrel changes (every 200-250 rounds) if possible. Machine gunnners must carry at least one (and preferably two or three) spare barrels. Only recoil-operated machine guns can be fitted with water-jackets, making already heavy (compared to gas-operated guns) machine guns even heavier.
But even gas-operated machine guns are still, objectively speaking, heavy. Perhaps the most widely used Light Machine Gun (used only in the Light Role, and fired from a bipod) is the FN Minimi 5.56mmx45mm. Although it fires the same round as an Assault Rifle weighing less than 10 pounds, the Minimi weights twice that because of the need for belt feed mechanisms and a much heavier (and changeable) barrel to afford more sustained fire than a rifle. Each 250-round ammo belt in a box magazine weighs a few pounds, and each gunner carries a minimum of 3 such box magazines (with a 250-round belt inside) of ammo, plus at least one spare barrel and a cleaning kit. Other members of the squad or section each carry one box magazine for the LMG in addition to their own weapons and ammo and the like. It all adds up.
It's even worse for GPMG/Medium Machine Gunner crews. The gun itself weights 24-26 pounds, and each 220-to 250-round belt of ammo weighs 12 or more pounds. Some 2 man MMG crews are only issued with 4 boxes (1 belt each of ammo), but full-sized 3-man crews (not including a Gun Commander) may be issued 8 boxes of ammo - about 100 pounds of ammo for just three men. And this is just to start with, because 8 boxes of ammo isn't going to last more more than a few hours of heavy fighting. Bear in mind that MMG crews also have an SF (Sustained Fire) Kit with tripod (about 28 pounds), aiming stakes, a tool and cleaning kit, at least one spare barrel and spare parts, and either a Traverse and Elevation Mechanism (T&E mech) or a Mortar Sight and Tritium Lamps. A lot of weight, although, like the ammo, stwoing it until need in a vehicle or leaving it at CQ may be an option (and a risky one for already explained reasons).
Now, armoured/mechanized/motorized infantry may be able to stow some of this in an APC or IFV or the Company QuarterMaster and send a man or to to go get more when necessary (if the vehicle or CQ isn't destroyed or can't be reached because of heavy enemy fire), but foot-infantry may not be so lucky to even contmeplate such an option, which means that some of the other members of a rifle platoon will also have to carry a box of MMG ammo in addition to the box of LMG ammo they are carrying for the squad's/section's LMGs (and in addition to the Anti-Tank Rockets, grenades, mines, pyrotechnics, and other assorted tactical necessities, never mind all their own kit).
Heavy Machine Guns, at least, are usually either vehicle-mounted (but still require a lot of ammo to be loaded on-board), or if mounted on a tripod, are usually kept close enough to a vehicle to be kept re-supplied more easily and to be re-mounted on the vehicle quickly if necessary. Very important, considering that HMGs are at least 130 pounds (when mounted on a tripod and with a Traverse and Elevation Mechanism - some are around 200), and each 100-round belt (in a box) of .50-cal ammo (never mind 14.5 or 15.5mm) weighs about 50 pounds. Ouch.
Machine Guns are the main weapon of the infantry,and without them, the infantry cannot perform its batlefield roles. But they, and their sundries, are very heavy, and place a great burden on the infantry who are already heavily burdened by the weights they must carry while doing their job. Many attempts have been made to reduce this burden, such as introudcing Light Machine Guns (like the FN Minimi) that fire small-calibre rounds to replace MMGs/GPMGs that weight a great deal more at the squad/section level.
But such LMGs cannot replace MMGs at platoon or higher levels because of the limited range and striking power of small-calibre rounds, and so MMGs must be retained, despite their greater weight and manpower requirements. HMGs similarly are retained, as MMGs lack the ability to reliably penetrate many APCs/IFVs except at point-blank ranges, if that. But HMGs must be either vehicle-mounted, or kept nearby a vehicle in order to keep them supplied with ammo, etc., and to move them more than short distances. Autocanons in the 20-40mm range have partially replaced HMGs in the anti-IFV/APC role, especially in armoured/mechanized infantry units. As IFVs' frontal protection is increased to deal with autocannons, the latter's effectiveness is progressively marginalized, especially as IFVs with the weight of medium tanks become increasingly common. HMGs may be able to penetrate the side and rear armour of such IFVs at close range, but only within a few hundred metres, if that.
At the moment, the US Army is seeking to replace both the M-2 HB .50 inch HMG and the M-19 Mod 3 40mm Grenade MG with a new, lighter Heavy Machine Gun with interchangeable barrels for .50 inch rounds and 25mm grenades. At only around 50 pounds or so with tripod, such weapons offer intriguing possibilities. But to do so, the HMG version offers only half the range and half the rate of fire of the old M-2 HMG, and given that the weight of the ammo remains the same (~50 pounds per 100-round belt), this offers no real improvement over the older HMG nor even a real useful advantage over the MMG. Weight is a perpetual problem for the infantry in general, and the machine gun, even as it is the main weapon of the infantry, provides a good portion of that burden.