The BHT-BASIC compiler converts the program
source code into a user application program for downloading to
the BHT.
The description of builds proceeds in the following order.
For further details, refer to Chapter 2 "Development Environment
and Development Procedures" in the BHT-BASIC Programmer's
Manual.
Build Procedure
- Run the BHT-BASIC compiler.
- Choose the File|Open menu command to display the Open File
dialog box.

- Select a program source code file and press the Open button
to open it.

- Choose the Tools|Options menu command to display the Set
Options dialog box.

- Configure options.
First, select the Compiler Version appropriate for the BHT
model used. (See the table below.)
| BHT series |
[Compiler Version] |
BHT-7000 series
BHT-7500 series
BHT-8000 series
BHT-100 series
|
BHT-BASIC3.6 |
| BHT-300 series |
BHT-BASIC4.0 |
The other option settings depend on the intended application,
but for the moment start with the ones shown.
Selecting BHT-BASIC 3.6 grays out certain options.

- Choose the Build|Build menu command to build the program.

Checking build results
A successful build displays the message "Building finished
normally" and
creates a user application program with the file extension .PD4
or .PD3. Proceed to Downloading Programs.
If the compiler detects a syntax error, however, it displays
the message "Failed to compile" and creates an error
message file with the file extension .ERR. Use the line numbers
and error codes from these error messages to determine the source
of the error and modify the source code accordingly.
For further details on syntax error codes, refer to Appendix
A2 "Compilation Errors" in the BHT-BASIC Programmer's
Manual.

The compiler displays the following screen when it detects a
fatal error. Use the error code to determine
the source of the error and modify the source code accordingly.
For further details on fatal error codes, refer to Appendix A2 "Compilation
Errors" in the BHT-BASIC Programming Manual.

Creating a user application from multiple source code files
BHT-BASIC allows developers to split a user application program
into multiple source code files. The key step is creating a project
file listing those files.
This manual omits the description of the project file. Refer
to the BHT-BASIC Programmer's Manual.
|