Please enable JavaScript to view this site.

thinBasic Help Manual

Navigation: ThinBASIC Modules

Oxygen (Just in time compiler)

Scroll Prev Top Next More

* * HELP & MANUAL PREMIUM PACK 4 DEMO VERSION * *

This documentation was styled with a demo skin from the Premium Pack 4 add-on for Help & Manual. The contents of the skin are encrypted and not configurable. You can only publish HM projects with this skin. You cannot edit it or change it.

This version is copyright and may only be used for local testing purposes. It may not be distributed.

Please purchase the full version of the Premium Pack to get the configurable skins and remove this notice. The package will also include the Toolbox configuration utility for Premium Pack skins.

 

Description

 

O2H is a Just-In-Time compiler assembler, deployed in a single DLL that takes source code strings and returns executable binary. It is an extension of the Oxygen assembler. This implementation can be used with thinBasic to provide high speed functions for time critical operations, that would otherwise be impractical using interpreted code alone.

 

This is the preliminary release of the thinBasic Oxygen compiler - which will become part of the thinBasic package in due course. Since it incorporates the Oxygen Assembler, it will replace this component in thinBasic.

 

O2H supports Object Oriented Programming with mulple inheritance and also single inheritance modes, more suited to COM. In addition to this O2H will support User-defined operators and operator sets for use with complex numbers, matrices, vectors, sets and other specialised forms.

 

The built in function set is quite small at present. Just enough to enable further functionality to be self-coded in o2h.

 

O2H can interact directly with thinBasic Variables - including User-Defined Types, or it can return values using Subs and Functions like an external DLL..

 

How to do?

 

Inside your script, before calling any module specific keyword, add the following:

 

USES "Oxygen"

 

How to do?

 

To have more info about this fantastic module see Oxygen dedicated thinBasic community forum

 

Thanks

 

 

A big thanks to Charles Pegge, author of Oxygen Just-In-Time compiler.

 

Created with Help+Manual 8 and styled with Premium Pack Version 4 © by EC Software