Open-source, free, multi-platform BASIC compiler, with syntax similar MS-QuickBASIC (including the GFX statements), that adds new features such as pointers, unsigned data types, inline assembly, a pre-processor and many others.
Follow FreeBASIC Compiler
Rate This ProjectLogin To Rate This Project
Very easy to learn and use, even for bigger projects.
First, in response to tespro below, large serious compilers use lots of memory and the way to get that in DOS is by the DPMI service (whatever that is) that makes high memory available to programs and data. Windows includes that and Linux/Unix makes high memory available, but DOS doesn't (FreeDOS does, I think). So a compiler like fbc or djgpp's gcc needs a DPMI add-on to work in pure DOS. It's available as one of the djgpp files from delorie.com, and I think it needs to be installed by the config.sys boot script. The instructions should be on the delorie website. I like to compile my own version of such projects and stash them in /usr/local, but I found a problem with compiling FreeBASIC. It wants ffi.h and I just built and installed libffi-3.2.1. The header wasn't found. I dug and found that this lib release installs ffi.h in an odd place. It makes a folder, /usr/lib/libffi-3.2.1/include and puts the two created headers there. I copied them to /usr/include and the compilation proceeded ok. Haven't tried the actual compiler. I think I'd rather have the entire package coded in a standard language like C or C++ instead of like Ada, with a component that must be built with self-compilation by a previous version. I'm also not seeing that there's a test suite to be run by "make check" to make sure everything's working correctly. That would inspire confidence in users who might want to use FreeBASIC for business and other serious purposes. Hey, I've built new versions of the GCC compilers a number of times, always fun to see a build run quite cleanly. Speaking of standards compliance, the program statement for i=1 to 4:print i;" ";:next should leave 3 spaces between the positive numbers. In testing various Basics, I've seen everything from 2 to 8 spaces between numbers. Standards compliance is kinda scarce in Basic. You wouldn't find that inaccuracy in a language implementation for grownups. I'm rating the fbc pages mediocre for hiding the source, and the rest of it is pretty good.
great project. I use the Windows/DOS/Linux and even ARM port. An excellent open source implementation of the venerable BASIC language, but now with Object Oriented features, and modern graphics, sound and other goodies.
Perfect compiler !
Been using this compiler for some years its really good BUT.... Down side "PNG FILES"! - And yes i looked at the forums and documentation, no success with resolving the png lib issue and some other 3-rd party libs (not all) seem to be problems with, keep getting errors, recently. Can't understand why the developer(s) won't just package fixed libs such AS; png lib(s) in the main release, when fixed, because license wise it would not be an issue. For higher than 8-bit graphics going to still stick with C++ and sdl, with the gcc, which i find far more less stressful and at ease compared to FreeBasic for my main projects. An other thing i notice for a long time not much tutorials on Open GL with this software, but again people may as well just use C++ and GULT. Overall would be great if the dev ADDED PNG LIB FIXED AND PACKAGED, IN THE NEXT RELEASE!