Описание тега red-system
Red/System is a domain-specific dialect of the Red language--with similar capabilities to C, and some hardware-specific abilities. It uses the same syntax of REadable Notation ("REN") that rebol and red do, and follows the format of most of their basic constructs. But its datatypes are lower-level, and it is not homoiconic. Thus although Red can reflect and generate Red/System source as a data structure, Red/System cannot do this to its own code.
The dialect notably serves as the Intermediate Language (IL) for code generation in Red, and can target several ARM and x86 platforms; including Linux, Windows, OS/X, and Android. The Red runtime library is also written in Red/System. Performance of Red/System's generated code operates within striking distance of that output by most C compilers, though completely matching optimized C performance is considered unlikely by the project lead.
Any Red executable can generate code from Red/System input files (*.reds
). Also, Red files (*.red
) can embed Red/System code--similar to how C sources can embed inline assembly. It's relatively simple to make bindings to C libraries or DLLs, and several are available for projects like opencv, zeromq, sqlite, and more.
- Red/System language specification
- Red/System compiler source (subdirectory of Red project on GitHub)