Table of Contents

ugBASIC User Manual

Installation

Prerequisites

The ugBASIC compiler is a console application for Linux and Microsoft Windows operating system. A convenient IDE environment is also available for Microsoft Windows operating system, which downloads and installs all dependencies. If you are using this operating system we recommend that you download and use it.

So, the compiler depends on different software in order to obtain an executable for the various targets (make sure you have the latest version):

So you need to download them from their website and make sure that you can launch them from any directory on your console. There is a reference to the github repositories for each of these tools in the ugBASIC source, in case the latest version doesn't work.

Download precompiled

You will find all binaries under the latest release. Each target has its compiler, and each compiler will run under Linux or Microsoft Windows. All of them are compiled for 64-bit processors. If you need the 32 bit version, you have to download sources and recompile the compiler from that.

If you downloaded binary please move to usage section.

Download sources

You can download as a ZIP or clone the latest version directly from github, by clicking the the Code button. If you download the zip file, you must extract all the files before continuing. In order to compile the compiler, you need the following software installed:

Moreover, you have to download / init all submodules, as well, by executing the following command:

  git submodule update --recursive --init --remote

If something goes wrong, use this alternate command line:

  git config core.protectNTFS false
  cd modules/6502
  git config core.protectNTFS false
  cd ../..
  git submodule update --force --recursive --init --remote

Recompile the compiler

In order to compile the compiler you have to use the make command:

 make target=xxxx clean compiler

Where xxxx is one of the targets given above. The compiler will be placed under the ugbc/exe path.

If you recompiled the compiler, please move to usage section.

POWERED BY