6. Provide the Compiler Configurations

6A. Command Line (cmd) Compilation (Linux)

6B. Compilation in Lycia VS Code Extension (LVSCE)

Compilation Basics: Lycia's building process involves two compilation stages (4GL to IR, then IR to object code) and a linking stage. Intermediate Representation (IR) is stored in .4o files, which are then linked into an assembled IR code module and translated into native code during the Ahead-of-Time (AOT) compilation. For the building process, Lycia uses its command line tools:

File Encoding: Use the -e flag with qfgl, qmsg, qform for specific source file encoding.

Command Example: qfgl -e UTF-8 your_program.4gl

6A. Command Line (cmd) Compilation (Linux)

Step 1. Perform the Environment Setup (Optional): Create the environ file to set environment variables for command line tools. This file should be sourced before the Lycia tools are executed in cmd. Note that these variables will be set for the current session only.

Reference: For more on the environ configuration file, refer to the environ page.

Step 2. Set the Variables for Lycia Location and Licensing:

Step 3. Set the Database Environment Variables:

INFORMIXDIR

INFORMIXSERVER

INFORMIXSQLHOSTS

DB_LOCALE

CLIENT_LOCALE

LOGNAME

INFORMIXPASS

Step 4. Debug Flags for Compilation:

These are set in the environ file.

Step 5. DB-Schema (Database Schema) Compilation:

Example: export FGLDBPATH=/path/to/db_schema_files

6B. Compilation in Lycia VS Code Extension (LVSCE)

settings.json file: This VS Code configuration file contains Lycia configurations and environment variables used at program compilation in the Lycia VS Code Extension.

Reference: For more on environment variables used in Lycia, refer to the Environment Variables documentation chapter.

 

See next: 7. Runtime Configurations

 

Contact Us

Privacy Policy

Copyright © 2026 Querix, (UK) Ltd.