How xharbour-org/xharbour works
Project type and purpose
• xHarbour is a compiler and runtime for the Clipper/xBase language (an xBase superset).
• It includes: a source‐code compiler (front-end + back-end), a virtual machine (VM) that executes P-code, and extensive runtime libraries (RTL) for data, I/O, GUI, RDD drivers, etc.
File structure
• Top-level:
• build scripts and config (Makefile, buildxbuilder.sh, config/)
• contrib/ — third-party libraries (FreeImage, GD, zlib, SQLite, etc.)
• / — public headers and API definitions
• source/ — compiler, codepage, common, VM, runtime (rtl), RDD drivers, ODBC, CGI, etc.
• tests/ — automated test suites
• Patterns:
• MVC-style separation of compiler phases under source/compiler
• VM core under source/vm
• Runtime libraries under source/rtl, source/common, source/rdd
• Platform abstraction via config/* and per-OS code under source/rtl/*
README insights
• Confirms full compiler + runtime, cross-platform (Windows, Linux, MacOS).
• Build tools drive compiler toolchain selection and target platform.