The IBM Informix 4GL programming language goes through a multi-step conversion to C code, which is then compiled and linked to its own runtime library, ESQL / C (Embedded SQL in C) runtime libraries, and C system libraries.
program.4gl - source codeprogram.4ec - C code with built-in ESQL / C and advanced input operationsprogram.ec - C code with built-in ESQL / Cprogram.c - pure C codeprogram.o - object codeprogram - executable file
The .4ec phase is a kind of historical accident; The ESQL / C compiler initially handled both advanced input operations and ESQL / C, but when the extended operations were removed from the ESQL / C compiler (when the library and ESQL / C compiler were significantly rewritten), the extended input operations were processed by cutting the code, which handled this from the original ESQL / C compiler.
A fair number of people have written code generators that write I4GL source code from another language, or that preprocess closely related source code in I4GL before it is sent to the I4GL compiler.
Jonathan Leffler Jul 08 '11 at 0:40 2011-07-08 00:40
source share