Pure Basic : optimized basic compiler
Introduction visual basic compiler News visual basic compiler Download visual basic compiler Screenshots optimized programming language Ordering visual basic compiler Support visual basic compiler FAQ optimized programming language Links

PureBasic MacOS X

PureBasic is a new "high level" programming language based on established BASIC rules. It is similar to any other BASIC compiler you may have used, whether for the Amiga, PC or Mac. Learning PureBasic is very easy! PureBasic has been created for the beginner and expert alike. Compilation time is really fast. We have put a lot of effort into its realization to produce a fast, reliable and system friendly language.

The syntax is easy but the possibilities are endless with PureBasic's advanced features, such as pointers, structures, procedures, dynamically linked lists and much more. The experienced coder will have no problem in gaining access to any of the legal OS structures or API objects.

PureBasic is a portable programming language which currently works Linux, Windows and MacOS X computer systems. This means that the same code can be compiled natively these three systems and still use the full power of each. There are no bottlenecks like a virtual machine or a code translator; the generated code produces highly optimized executables regardless of the OS on which it is compiled.

Technical Features

- Intel (x86 and x64) support
- Built-in arrays, dynamically linked lists, complex structures, pointers and variable definitions
- Supported types: Byte (8-bit), Word (16-bit), Long (32-bit), Float (32-bit), Quad (64-bit), Double (64-bit) and user defined types (structures)
- Built-in string types (characters)
- Constants, binary and hexadecimal numbers supported
- Expression reducer (grouping constants and explicit numbers together)
- Standard arithmetic support in respect of sign priority and parenthesis: +, -, /, *, and, or, lsl, asl, lsr, asr
- Very fast compilation
- Procedure support for structured programming with local and global variables
- All Standard BASIC keywords: If-Else-EndIf, Repeat-Until, etc.
- External library support to manipulate objects like PNG pictures, windows, gadgets, OpenGL, etc.
- External libraries are very optimized for maximum speed and compactness
- Easy MacOS X API access, including Cocoa objectsBASIC keywords
- Inline assembler
- Precompiled structures with constants files for extra fast compilation
- Configurable CLI compiler
- System friendly, easy to install and use
- Powerful native IDE and debuggers


- MacOS X 10.5+ (Leopard or above)
- The Apple SDK (available on the OS install CDs or on the Apple Store)

Product information

PureBasic is designed for both beginners and 'pure' advanced users alike. Here we will explain some important features demonstrating that PureBasic is a very powerful and unique language. Firstly, PureBasic uses "third party libraries" which are very modular, and can extend to any number of libraries. There are numerous libraries provided as standard which include : sound, sprite, windows, gadgets, screen, palette, openGL, etc. These libraries ensure maximum performance, as they are carefully optimized to have the fastest language possible.

Note: any user can develop their own libraries. All tools are provided in the full package. User libraries can be written in both C and assembler for better flexibility.

The advanced system of structures and pointers lets the user access OS objects easily, allowing extra information to be used with regular commands. Most of MacOS X functions (Carbon, LibC, ...) are supported through a large file containing all constants and structures. Independent 'include' files are provided, so that if mistakes are made during conversion they can be easily corrected. This allows lightning fast compilation, even if your program needs to access OS functions. To help the user convert C/C++ include files, a small utility is provided, saving you a lot of time and effort.

For all assembler optimizer freaks (like us ? :-): You can compile programs into a 'commented asm output file', containing all code in a comprehensive asm format; all directly recompilable with GNU gas. It has never been so easy to optimize small program parts. You keep control of all your source code.

The PureBasic source code has been programmed in a very modular fashion and can support any processor or operating system. This has been proven already as PureBasic is now available on four very different systems: AmigaOS, Windows, MacOS X and Linux.

  Copyright © 2018 Fantaisie Software support@purebasic.com  

By the same author, discover the new web client-side programming language
based on established BASIC rules on spiderbasic.com