Specifications

Chapter 2. Development Environment and Procedures
43
2.4.10 Structure of User Programs and Libraries
If you specify a user program to be produced in the Project Configuration Files dialog box, the
BHT-BASIC 3.5 Compiler produces a user program provided that no compiling error or link
error occurs. The user program file will be given the same name as the project file and
annexed with an extension .PD3.
If you specify a library to be produced, the Compiler produces a library provided that no compil-
ing error or library error occurs. The library file will be given the same name as the project file
and annexed with an extension .LIB.
If the name of a newly produced file is the same as that of an existing file in the destination
directory, Compiler will overwrite the existing file with the new file.
Structure of user programs
A user program is expressed in the intermediate language, where statements, functions and
variables are in two-byte form of ASCII characters. A record is 128 bytes in length and
annexed with CR and LF codes.
When downloaded to the BHT and stored in its memory, a user program will be compressed
from two-byte form into single-byte hexadecimal form. Accordingly, the length of a record
comes to 64 bytes.
Structure of libraries
A library consists of more than one object filename and object information.