GW-BASIC

GW-BASIC is a dialect of the BASIC programming language developed by Microsoft from IBM BASICA.

Since it was included with most versions of MS-DOS, it was also a low-cost way for many aspiring programmers to learn the fundamentals of computer programming.

[2][3] Microsoft also sold a BASIC compiler, BASCOM, compatible with GW-BASIC, for programs needing more speed.

[5] On May 21, 2020, Microsoft released the 8088 assembler source code for GW-BASIC 1.0 on GitHub under the MIT License.

For example, the AT&T and Tandy versions of DOS include a special GW-BASIC that supports their enhanced sound and graphics capabilities.

GW-BASIC has a command-line-based integrated development environment (IDE) based on Dartmouth BASIC.

Groups of variables can also be set to default types based on the initial letter of their name by use of the DEFINT, DEFSTR, etc., statements.

More low-level control is possible with the SOUND statement, which takes the arguments of a frequency in hertz and a length in clock ticks for the standard internal PC speaker in IBM machines.

Consequently, sound is limited to single channel beeps and whistles as befits a "business" machine.

Greg Whitten, an early Microsoft employee who developed the standards in the company's BASIC compiler line, says that Bill Gates picked the name GW-BASIC.

[8] Other common theories as to the initials' origins include "Graphics and Windows", "Gates, William" (Microsoft's president at the time), or "Gates–Whitten" (the two main designers of the program).