FreeBASIC

From Gentoo Wiki
Jump to:navigation Jump to:search
This article is a stub. Please help out by expanding it (how to get started).

FreeBASIC is a modern self-hosting object oriented BASIC compiler with a QuickBASIC compatibility mode. FreeBASIC is a modern evolution of the BASIC programming language released under the GPL. While operating in native "fb" mode, FreeBASIC provides for namespaces, object oriented programming, function overloading, inline assembly, and a C-style preprocessor.

In "qb" mode FreeBASIC is highly compatible with Microsoft QuickBASIC, allowing many legacy BASIC programs targeting the QuickBASIC interpreter to compile and run unaltered. Additionally, there is a hybrid "fblite" mode that keeps some measure of QuickBASIC compatibility while enabling a subset of modern features from "fb" mode. This permits the gradual modernization of an existing BASIC codebase.

FreeBASIC runs on multiple platforms including Linux and Microsoft Windows; even the DOS port is still maintained.

Installation

FreeBASIC is in the Gentoo Project:GURU repository, not the main Gentoo ebuild repository.

USE flags

  • gpm
  • libffi
  • opengl
  • X

Emerge

# emerge --ask dev-lang/fbc

Unmerge

#emerge --ask --depclean --verbose dev-lang/fbc

See also

  • Bash — the default shell on Gentoo systems and a popular shell program found on many Linux systems.
  • Python — a cross-platform interpreted programming language. Python powers Portage, eselect, equery, and many other tools in Gentoo.

External Resources