In military parlance, a gun is a muzzle or breech-loaded projectile-firing weapon. There are various definitions depending on the nation and branch of service. A "gun" may be distinguished from other firearms in being a crew served weapon such as a howitzer or mortar, as opposed to a small arm like a rifle or pistol, but there are exceptions, such as the USAFs GUU5/P. At one time, land based artillery tubes were called cannon and sea-based naval cannon were called guns. The term "gun" morphed into a generic term for any tube launched projectile firing weapon used by sailors including boarding parties and marines.
In modern parlance, a gun is a projectile weapon using a hollow, tubular barrel with a closed end—the breech—as the means of directing the projectile (as well as other purposes, for example stabilizing the projectiles trajectory, aiming, as an expansion chamber for propellant, etc), and firing in a generally flat trajectory.
The term "gun" has also taken on a more generic meaning, by which it has come to refer to any one of a number of trigger-initiated, hand-held, and hand-directed implements, especially with an extending bore, which thereby resemble the class of weapon in either form or concept. Examples of this usage include staple gun, nail gun, glue gun, grease gun. Occasionally, this tendency is ironically reversed, such as the case of the American M3 submachine gun which carries the nickname "Grease Gun".