A building code, or building control, is a set of rules that specify the minimum acceptable level of safety for constructed objects such as buildings and non-building structures. The main purpose of building codes are to protect public health, safety and general welfare as they relate to the construction and occupancy of buildings and structures. The building code becomes law of a particular jurisdiction when formally enacted by the appropriate governmental or private authority.
Building codes are generally intended to be applied by architects, engineers, constructors and regulators but are also used for various purposes by safety inspectors, environmental scientists, real estate developers, subcontractors, manufacturers of building products and materials, insurance companies, facility managers, tenants, and others. Codes regulate the design and construction of structures where adopted into law. Codes in developed western nations can be quite complex and exhaustive. They began in ancient times and have been developing ever since. In the USA the main codes are the International Commercial or Residential Code [ICC/IRC], electrical codes and plumbing, mechanical codes. Other codes may include fire, health, transportation, manufacturing, and other regulations/regulators/testers such as UL; Underwriters Labs. In essence they are minimum standards of design and implementation. Designers use ICC/IRC standards out of substantial reference books during design. Building departments review plans submitted to them before construction, issue permits [or not] and inspectors verify compliance to these standards at the site during construction.
There are often additional codes or sections of the same building code that have more specific requirements that apply to dwellings or places of business and special construction objects such as canopies, signs, pedestrian walkways, parking lots, and radio and television antennas. (Source: Wikipedia.org)
In Malaysia, there is also a building code been established by Fire and Rescue Department called Uniform Building by Laws in 1984. Learn more of codes here; and download it for free.