FreeBASIC is a free/open source BASIC compiler for Windows DOS and Linux

67 90s_dev 16 5/17/2025, 10:47:55 PM freebasic.net ↗

Comments (16)

gus_massa · 2h ago
Old discussion: https://news.ycombinator.com/item?id=38730966 (105 points | Dec 2023 | 70 comments)
orionblastar · 6h ago
This one emulates GW-BASIC as PC-BASIC so old BASIC programs for the IBM PC DOS systems can run on modern systems: https://robhagemans.github.io/pcbasic/

FreeBASIC is like Microsoft's QuickBASIC.

More BASIC Languages: https://www.thefreecountry.com/compilers/basic.shtml

vunderba · 5h ago
It really isn't - from the docs themselves:

  FreeBASIC gives you the FreeBASIC compiler program (fbc or fbc.exe),
  plus the tools and libraries used by it. fbc is a command line program
  that takes FreeBASIC source code files (*.bas) and compiles them into
  executables.  In the combined standalone packages for windows, the main
  executable is named fbc32.exe (for 32-bit) and fbc64.exe (for 64-bit)

The magic of QuickBasic was that it was an editor, interpreter, and help system all rolled up into a single EXE file. Punch F5 and watch your BAS file execute line-by-line.
bencollver · 5h ago
Wasn't QBasic the interpreter as opposed to QuickBasic the compiler?
vunderba · 4h ago
It's been a long time, but my impression was that QuickBASIC had an interpreter and the ability to compile. Then later on, Microsoft bundled a more limited version called QBasic with later versions of MS DOS which lacked the compiler.

But all of them (QBasic, QuickBASIC, Microsoft PDS, and even Visual Basic for DOS which almost nobody remembers sadly) had the editor, interpretative execution, and built-in help.

agf · 1h ago
This matches my memory. When I got my dad's old work computer with QuickBASIC on it, and I discovered the compiler, and could write programs other people could "just run", I felt like a real programmer for the first time.
90s_dev · 3h ago
I remember VB-DOS, and fondly too. It was magical. I think I used it even before VB3.
DCKP · 2h ago
All this brings back fond memories of my first programming foray, an ASCII game in QBASIC from Mars and Back: Computer Programming Handbook by Andrew J. Read. So much fun, so much frustration.
analog31 · 4h ago
This is what I recall too. QuickBasic was perhaps BASIC's answer to Turbo Pascal, a relatively lightweight but usable text based IDE. I knew some happy users.
the_af · 1h ago
No, QuickBasic was both an interpreter and a compiler. QBasic was just an interpreter.
klipt · 1h ago
"Compiler". Even Visual Basic only compiled to p-code, which had to be interpreted at runtime. Not to fully native code.

That's why it always ran slower than Delphi.

westurner · 4h ago
> The magic of QuickBasic was that it was an editor, interpreter, and help system all rolled up into a single EXE file. Punch F5 and watch your BAS file execute line-by-line.

That's still how vscode works; F5 to debug and Ctrl-[Shift]-P like CtrlP.vim: https://code.visualstudio.com/docs/debugtest/debugging

FWICS,

The sorucoder.freebasic vscode extension has syntax highlighting: https://marketplace.visualstudio.com/items?itemName=sorucode...

There's also an QB64Official/vscode extension that has syntax highlighting and keyboard shortcuts: https://github.com/QB64Official/vscode

re: how qb64 and C-edit are like EDIT.COM, and GORILLA.BAS: https://news.ycombinator.com/item?id=41410427

C-edit: https://github.com/velorek1/C-edit

vunderba · 4h ago
I tried QB64 a couple years ago, but IIRC it's still compiled as opposed to interpretative, e.g. you can't Ctrl-Break and drop into the current executing line of BASIC code unless they've radically changed how it works.
90s_dev · 3h ago
Rather, QB was the pico8 of the 1990s. Convenient, self-contained, mysterious, quasi-powerful, in-app help menu for the entire language and API, and a few built-in demo games.
WalterGR · 5h ago
> FreeBASIC is like Microsoft's QuickBASIC.

Except that it doesn't emulate Microsoft's QuickBASIC, or ... ?

banana_giraffe · 5h ago
It does support "-lang qb" which is designed to specifically limit FreeBASIC to a QuickBASIC compatible dialect.