Byblos: Difference between revisions

From XionKB
Jump to navigationJump to search
(partial rewrite)
(wip)
 
(13 intermediate revisions by the same user not shown)
Line 5: Line 5:
|initialrel=<em>unreleased</em>
|initialrel=<em>unreleased</em>
|langs={{wp|ANSI C}}, {{wp|Make (software)|Make}}, {{wp|Unix shell|POSIX sh}}
|langs={{wp|ANSI C}}, {{wp|Make (software)|Make}}, {{wp|Unix shell|POSIX sh}}
|systems={{wp|Darwin (operating system)|Darwin}}, {{wp|Linux|GNU/Linux}}
|systems={{wp|Darwin (operating system)|Darwin}}/{{wp|XNU}}, {{wp|Linux|GNU/Linux}}
|archs={{wp|Apple silicon}}, {{wp|x86-64}}
|archs={{wp|Apple silicon}}, {{wp|x86-64}}
|lic=[[ASL|ASL 1.1]]
|lic=[[ASL|ASL 1.1]]
}}
}}
'''Byblos''' is a software development kit developed for [[Sirius DOS]], [[A*]] and {{wp|Unix}}-based servers, with distinction for [[MILOTIX]] and Linux, BSD and Darwin (pan-Unix) support. It is divided into two versions: Byblos 1, a provisional SDK that uses existing compiler toolchains and host infrastructure of Unix-like operating systems, and Byblos 2, the proper SDK that provides [[FCC|its own C compiler]], [[Oración|assembler]], and [[Sirius C*|the first C* compiler]].
'''Byblos''' is a software development kit developed for [[Sirius DOS]], [[A*]] and {{wp|Unix}}-based servers, with distinction for [[MILOTIX]] and Linux, BSD and Darwin (pan-Unix) support. It is divided into two versions: Byblos 1, a provisional SDK that uses existing compiler toolchains and host infrastructure of Unix-like operating systems, and Byblos 2, the proper SDK that provides [[Feeble C compiler|its own C compiler]], [[Oración|assembler]], and [[Sirius C*|the first C* compiler]].


==Byblos 1==
==Byblos 1==
===Platform support===
Byblos 1 is the provisional Byblos SDK, running on GNU/Linux with <tt>glibc</tt>, either on x86-64 or AArch64. These two platforms are the only supported hosts, and on them Byblos can target the following platforms:
Byblos 1 is multi-platform. While it endeavours to target all systems of relevance to Xion Megatrends, only three host platforms are supported: GNU/Linux on Intel 64, Darwin/XNU on Intel 64 and Darwin/XNU on Apple silicon. The following table gives Byblos 1's platform support matrix with respect to building and running software in the first and second tables, respectively.
* GNU/Linux with <tt>glibc</tt> on x86-64
* GNU/Linux with <tt>glibc</tt> on AArch64
* GNU/Linux with <tt>glibc</tt> on ARMv7HF
* GNU/Linux with <tt>musl</tt> on x86-64
* GNU/Linux with <tt>musl</tt> on AArch64
* GNU/Linux with <tt>musl</tt> on ARMv7HF
* Microsoft Windows 95, 98 and Me on i386
* Microsoft Windows NT 4.0+ on i386
* Microsoft Windows NT 5.1+ on x64
* Apple macOS 10.4+ on Intel 64
* Apple macOS 11.0+ on AArch64


====Compile time support matrix====
All GNU/Linux targets use GCC cross-compilers, while all Windows targets use a single MinGW-W64 cross-compiler and all Apple targets use two clang compilers to generate fat binaries with <code>lipo</code>. Even though Clang is inherently a cross-compiler, two versions of it must be provided since maximal compatibility necessitates using different versions of the proprietary Apple SDK for each microarchitecture: 10.4 provides the earliest x86-64 SDK while 11.0 provides the earliest AArch64 SDK.
{| class="wikitable" width="900px" style="text-align:center"
|-
! rowspan="2" | Host
! colspan="6" | Target
|-
| <tt>agbhb</tt>
| <tt>agbsp</tt>
| <tt>astar</tt>
| <tt>darwin86</tt>
| <tt>darwinm1</tt>
| <tt>freebsd</tt>
|-
| <tt>linux64</tt>
| devkitARM
| devkitARM
| ''unknown''
| ''none''
| ''none''
| LLVM
|-
| <tt>darwin86</tt>
| devkitARM
| devkitARM
| ''unknown''
| hb:LLVM
| hb:LLVM
| hb:LLVM
|-
| <tt>darwinm1</tt>
| devkitARM
| devkitARM
| ''unknown''
| hb:LLVM
| hb:LLVM
| hb:LLVM
|-
! rowspan="2" | Host
! colspan="6" | Target
|-
| <tt>ibmpc</tt>
| <tt>illumos</tt>
| <tt>linux32</tt>
| <tt>linux64</tt>
| <tt>milotix</tt>
| <tt>openbsd</tt>
|-
| <tt>linux64</tt>
| djGPP
| LLVM
| LLVM
| LLVM
| ''unknown''
| LLVM
|-
| <tt>darwin86</tt>
| djGPP
| hb:LLVM
| hb:LLVM
| hb:LLVM
| ''unknown''
| hb:LLVM
|-
| <tt>darwinm1</tt>
| djGPP
| hb:LLVM
| hb:LLVM
| hb:LLVM
| ''unknown''
| hb:LLVM
|-
! rowspan="2" | Host
! colspan="6" | Target
|-
| <tt>pcdos</tt>
| <tt>win311</tt>
| <tt>win95</tt>
| <tt>winnt32</tt>
| <tt>winnt64</tt>
| &nbsp;
|-
| <tt>linux64</tt>
| djGPP
| djGPP
| MinGW
| MinGW
| MinGW
| &nbsp;
|-
| <tt>darwin86</tt>
| djGPP
| djGPP
| MinGW
| MinGW
| MinGW
| &nbsp;
|-
| <tt>darwinm1</tt>
| djGPP
| djGPP
| MinGW
| MinGW
| MinGW
| &nbsp;
|}


====Runtime support matrix====
Later, support ''may'' be added for the following platforms, pending integration of devkitARM and OpenWatcom 2:
{| class="wikitable" width="900px" style="text-align:center"
* Nintendo Game Boy Advance on ARMv4T
|-
* Microsoft Windows 3.1 on i286
! rowspan="2" | Host
* MS-DOS 5.0+ on i286
! colspan="6" | Target
|-
| <tt>agbhb</tt>
| <tt>agbsp</tt>
| <tt>astar</tt>
| <tt>darwin86</tt>
| <tt>darwinm1</tt>
| <tt>freebsd</tt>
|-
| <tt>linux64</tt>
| mGBA
| mGBA
| ''unknown''
| ''none''
| ''none''
| QEMU/u
|-
| <tt>darwin86</tt>
| mGBA
| mGBA
| ''unknown''
| ''native''
| ''none''
| QEMU/u
|-
| <tt>darwinm1</tt>
| mGBA
| mGBA
| ''unknown''
| Rosetta 2
| ''native''
| QEMU/u
|-
! rowspan="2" | Host
! colspan="6" | Target
|-
| <tt>ibmpc</tt>
| <tt>illumos</tt>
| <tt>linux32</tt>
| <tt>linux64</tt>
| <tt>milotix</tt>
| <tt>openbsd</tt>
|-
| <tt>linux64</tt>
| Bochs
| QEMU/h
| ''native-ish''
| ''native''
| ''unknown''
| QEMU/u
|-
| <tt>darwin86</tt>
| Bochs
| QEMU/h
| QEMU/u
| QEMU/u
| ''unknown''
| QEMU/u
|-
| <tt>darwinm1</tt>
| Bochs
| QEMU/h
| QEMU/u
| QEMU/u
| ''unknown''
| QEMU/u
|-
! rowspan="2" | Host
! colspan="6" | Target
|-
| <tt>pcdos</tt>
| <tt>win311</tt>
| <tt>win95</tt>
| <tt>winnt32</tt>
| <tt>winnt64</tt>
| &nbsp;
|-
| <tt>linux64</tt>
| DOSBox
| DOSBox
| Wine
| Wine
| Wine
| &nbsp;
|-
| <tt>darwin86</tt>
| DOSBox
| DOSBox
| Wine
| Wine
| Wine
| &nbsp;
|-
| <tt>darwinm1</tt>
| DOSBox
| DOSBox
| Wine
| Wine
| Wine
| &nbsp;
|}


====Tool list====
All target platforms support console-type applications as well as graphical ones with OpenGL hardware acceleration. Supported languages include ANSI C, C++14, and GNU assembler. Platforms that use OpenWatcom 2 lose C++ support, and both OpenWatcom 2 and devkitARM dependent platforms lack OpenGL support.
{| class="wikitable" width="900px"
|-
! Tool name
! width="100%" | Description
|-
| devkitARM
| devkitPro's 32-bit ARM GCC toolchain.
|-
| hb:LLVM
| LLVM installed via Homebrew on macOS.
|-
| LLVM
| LLVM installed on a Unix-like.
|-
| djGPP
| Modified GCC for compiling 16-bit DOS programs.
|-
| MinGW
| Modified GCC for targeting Microsoft Windows.
|-
| mGBA
| Accurate GBA emulator.
|-
| QEMU/u
| QEMU virtualisation framework, in the low-friction userland virtualisation mode.
|-
| QEMU/h
| QEMU virtualisation framework, using a full-fat VM.
|-
| Bochs
| Accurate IBM-PC emulator.
|-
| Wine
| Translation layer for Windows programs to run on other operating systems.
|-
| Rosetta 2
| Apple's transition system for running Intel Mac programs on Apple Silicon.
|-
| DOSBox
| Accurate MS-DOS emulator with a focus on gaming.
|}


====Supported targets====
===Supported targets===
{| class="wikitable" width="900px"
{| class="wikitable" width="900px"
|-
|-
! style="text-wrap:nowrap;width:30px" | <tt>i</tt>
! style="text-wrap:nowrap;width:60px" | Target
! style="text-wrap:nowrap;width:60px" | Target
! style="text-wrap:nowrap;width:150px" | Full&nbsp;name
! style="text-wrap:nowrap;width:150px" | Full&nbsp;name
Line 279: Line 44:
! style="text-wrap:nowrap;width:30px" | <tt>ASM</tt>
! style="text-wrap:nowrap;width:30px" | <tt>ASM</tt>
! style="text-wrap:nowrap;width:30px" | C
! style="text-wrap:nowrap;width:30px" | C
! style="text-wrap:nowrap;width:30px" | C++
! style="text-wrap:nowrap;width:30px" | <tt>bin</tt>
! style="text-wrap:nowrap;width:30px" | <tt>bin</tt>
! style="text-align:left" | Notes
! style="text-align:left" | Notes
|-
|-
| style="text-align:center" | [[File:agbhb.svg|28px]]
| style="text-align:center" | <tt>agbhb</tt>
| style="text-align:center" | <tt>agbhb</tt>
| style="text-align:center" | GBA homebrew
| style="text-align:center" | GBA homebrew
| style="text-align:center" | ARMv4T
| style="text-align:center" | ARMv4T
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
Line 291: Line 59:
| Scratch-building GBA ROMs.
| Scratch-building GBA ROMs.
|-
|-
| style="text-align:center" | [[File:agbsp.svg|28px]]
| style="text-align:center" | <tt>agbsp</tt>
| style="text-align:center" | <tt>agbsp</tt>
| style="text-align:center" | GBA sourcepage
| style="text-align:center" | GBA sourcepatch
| style="text-align:center" | ARMv4T
| style="text-align:center" | ARMv4T
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
Line 300: Line 70:
| Source-patching existing GBA ROMs.
| Source-patching existing GBA ROMs.
|-
|-
| style="text-align:center" | [[File:astar.svg|28px]]
| style="text-align:center" | <tt>astar</tt>
| style="text-align:center" | <tt>astar</tt>
| style="text-align:center" | [[A*|Anodyne A*]]
| style="text-align:center" | [[A*|Anodyne A*]]
| style="text-align:center" | ''unknown''
| style="text-align:center" | ''unknown''
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
Line 309: Line 81:
| Too early to specify.
| Too early to specify.
|-
|-
| style="text-align:center" | <tt>darwin86</tt>
| style="text-align:center" | [[File:darwin.svg|28px]]
| style="text-align:center" | Intel Mac
| style="text-align:center" | <tt>darwin</tt>
| style="text-align:center" | x86-64 v1
| style="text-align:center" | macOS
| style="text-align:center" | x86-64 v1 and ARMv8
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-yellow" | &ndash;
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-yellow" | &ndash;
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-yellow" | &ndash;
| style="text-align:center" class="cell-yellow" | &ndash;
| &nbsp;
| &nbsp;
|-
|-
| style="text-align:center" | <tt>darwinm1</tt>
| style="text-align:center" | [[File:glinuxa64.svg|28px]]
| style="text-align:center" | Apple Silicon Mac
| style="text-align:center" | <tt>glinuxa64</tt>
| style="text-align:center" | ARMv8
| style="text-align:center" | GNU/Linux + <tt>glibc</tt>
| style="text-align:center" | ARMv8.0
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-yellow" | &ndash;
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-yellow" | &ndash;
| style="text-align:center" class="cell-yellow" | &ndash;
| Only host that can target everything.
| Assumes VFPv2 hard float support.
|-
|-
| style="text-align:center" | <tt>freebsd</tt>
| style="text-align:center" | [[File:glinuxx64.svg|28px]]
| style="text-align:center" | FreeBSD
| style="text-align:center" | <tt>glinuxx64</tt>
| style="text-align:center" | GNU/Linux + <tt>glibc</tt>
| style="text-align:center" | x86-64 v1
| style="text-align:center" | x86-64 v1
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
Line 336: Line 114:
| &nbsp;
| &nbsp;
|-
|-
| style="text-align:center" | <tt>ibmpc</tt>
| style="text-align:center" | [[File:mlinuxa64.svg|28px]]
| style="text-align:center" | Real mode IBM-PC
| style="text-align:center" | <tt>mlinuxa64</tt>
| style="text-align:center" | Intel i286
| style="text-align:center" | GNU/Linux + <tt>musl</tt>
| style="text-align:center" class="cell-red" |
| style="text-align:center" | ARMv8.0
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| Not specific to any DOS conventions.
|-
| style="text-align:center" | <tt>illumos</tt>
| style="text-align:center" | illumos/OpenIndiana
| style="text-align:center" | SPARC64 V9
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-yellow" | &ndash;
| &nbsp;
|-
| style="text-align:center" | <tt>linux32</tt>
| style="text-align:center" | GNU/Linux 32-bit
| style="text-align:center" | Intel i686
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-yellow" | &ndash;
| style="text-align:center" class="cell-yellow" | &ndash;
| &nbsp;
| Assumes VFPv2 hard float support.
|-
|-
| style="text-align:center" | <tt>linux64</tt>
| style="text-align:center" | [[File:mlinuxx64.svg|28px]]
| style="text-align:center" | GNU/Linux 64-bit
| style="text-align:center" | <tt>mlinuxx64</tt>
| style="text-align:center" | GNU/Linux + <tt>musl</tt>
| style="text-align:center" | x86-64 v1
| style="text-align:center" | x86-64 v1
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-yellow" | &ndash;
| &nbsp;
|-
| style="text-align:center" | <tt>milotix</tt>
| style="text-align:center" | [[MILOTIX]]
| style="text-align:center" | x86-64 v3
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-yellow" | &ndash;
| &nbsp;
|-
| style="text-align:center" | <tt>openbsd</tt>
| style="text-align:center" | OpenBSD
| style="text-align:center" | x86-64 v1
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
Line 390: Line 136:
| &nbsp;
| &nbsp;
|-
|-
| style="text-align:center" | [[File:pcdos.svg|28px]]
| style="text-align:center" | <tt>pcdos</tt>
| style="text-align:center" | <tt>pcdos</tt>
| style="text-align:center" | Real mode PC-DOS
| style="text-align:center" | MS-DOS 5.0+
| style="text-align:center" | Intel i286
| style="text-align:center" | Intel i286
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| &nbsp;
| &nbsp;
|-
|-
| style="text-align:center" | [[File:win311.svg|28px]]
| style="text-align:center" | <tt>win311</tt>
| style="text-align:center" | <tt>win311</tt>
| style="text-align:center" | Windows 3.11
| style="text-align:center" | Windows 3.11
Line 405: Line 154:
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-yellow" | &ndash;
| style="text-align:center" class="cell-red" |
| style="text-align:center" class="cell-green" | ✔
| &nbsp;
| &nbsp;
|-
|-
| style="text-align:center" | [[File:win95.svg|28px]]
| style="text-align:center" | <tt>win95</tt>
| style="text-align:center" | <tt>win95</tt>
| style="text-align:center" | Windows 95, 98 &amp; Me
| style="text-align:center" | Windows 95, 98 &amp; Me
| style="text-align:center" | Intel i386
| style="text-align:center" | Intel i386
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
Line 417: Line 169:
| &nbsp;
| &nbsp;
|-
|-
| style="text-align:center" | [[File:winnt32.svg|28px]]
| style="text-align:center" | <tt>winnt32</tt>
| style="text-align:center" | <tt>winnt32</tt>
| style="text-align:center" | Windows NT 4.0 32-bit
| style="text-align:center" | Windows NT 4.0 32-bit
| style="text-align:center" | Intel i386
| style="text-align:center" | Intel i386
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
Line 426: Line 180:
| &nbsp;
| &nbsp;
|-
|-
| style="text-align:center" | [[File:winnt64.svg|28px]]
| style="text-align:center" | <tt>winnt64</tt>
| style="text-align:center" | <tt>winnt64</tt>
| style="text-align:center" | Windows NT 5.1 64-bit
| style="text-align:center" | Windows NT 5.1 64-bit
| style="text-align:center" | x86-64 v1
| style="text-align:center" | x86-64 v1
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
Line 436: Line 192:
|}
|}


=====Notes=====
====Notes====
* '''<tt>bin</tt>packing''' is a highly portable method of compiling assets statically into binaries
* '''<tt>bin</tt>packing''' is a highly portable method of compiling assets statically into binaries
* For assembly, uncertainty exists about toolchain support on macOS
* For assembly, uncertainty exists about toolchain support on macOS
* For <tt>bin</tt>packing, it may eventually work but needs further research
* For <tt>bin</tt>packing, it may eventually work but needs further research


====Programs list====
===Programs list===
# <tt>agbhb</tt>
{| class="wikitable" width="600px"
# <tt>agbsp</tt>
# <tt>astar</tt>
# <tt>darwin86</tt>
# <tt>darwinm1</tt>
# <tt>freebsd</tt>
# <tt>ibmpc</tt>
# <tt>illumos</tt>
# <tt>linux32</tt>
# <tt>linux64</tt>
# <tt>milotix</tt>
# <tt>openbsd</tt>
# <tt>pcdos</tt>
# <tt>win311</tt>
# <tt>win95</tt>
# <tt>winnt32</tt>
# <tt>winnt64</tt>
 
{| class="wikitable" width="900px"
|-
|-
! style="text-wrap:nowrap;width:90px" | Utility
! style="text-wrap:nowrap;width:30px" | <tt>i</tt>
! style="text-wrap:nowrap;width:30px" | 1
! Utility
! style="text-wrap:nowrap;width:30px" | 2
! style="text-wrap:nowrap;width:30px" | <span title="agbhb">[[File:agbhb.svg|28px]]</span>
! style="text-wrap:nowrap;width:30px" | 3
! style="text-wrap:nowrap;width:30px" | <span title="agbsp">[[File:agbsp.svg|28px]]</span>
! style="text-wrap:nowrap;width:30px" | 4
! style="text-wrap:nowrap;width:30px" | <span title="darwin">[[File:darwin.svg|28px]]</span>
! style="text-wrap:nowrap;width:30px" | 5
! style="text-wrap:nowrap;width:30px" | <span title="glinuxa64">[[File:glinuxa64.svg|28px]]</span>
! style="text-wrap:nowrap;width:30px" | 6
! style="text-wrap:nowrap;width:30px" | <span title="glinuxx64">[[File:glinuxx64.svg|28px]]</span>
! style="text-wrap:nowrap;width:30px" | 7
! style="text-wrap:nowrap;width:30px" | <span title="mlinuxa64">[[File:mlinuxa64.svg|28px]]</span>
! style="text-wrap:nowrap;width:30px" | 8
! style="text-wrap:nowrap;width:30px" | <span title="mlinuxx64">[[File:mlinuxx64.svg|28px]]</span>
! style="text-wrap:nowrap;width:30px" | 9
! style="text-wrap:nowrap;width:30px" | <span title="pcdos">[[File:pcdos.svg|28px]]</span>
! style="text-wrap:nowrap;width:30px" | 10
! style="text-wrap:nowrap;width:30px" | <span title="win311">[[File:win311.svg|28px]]</span>
! style="text-wrap:nowrap;width:30px" | 11
! style="text-wrap:nowrap;width:30px" | <span title="win95">[[File:win95.svg|28px]]</span>
! style="text-wrap:nowrap;width:30px" | 12
! style="text-wrap:nowrap;width:30px" | <span title="winnt32">[[File:winnt32.svg|28px]]</span>
! style="text-wrap:nowrap;width:30px" | 13
! style="text-wrap:nowrap;width:30px" | <span title="winnt64">[[File:winnt64.svg|28px]]</span>
! style="text-wrap:nowrap;width:30px" | 14
! style="text-wrap:nowrap;width:30px" | 15
! style="text-wrap:nowrap;width:30px" | 16
! style="text-wrap:nowrap;width:30px" | 17
! Notes
|-
|-
| style="text-align:center" | [[File:hinterlib.svg|28px]]
| style="text-align:center" | [[Hinterlib]]
| style="text-align:center" | [[Hinterlib]]
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
Line 497: Line 229:
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| <tt>libc</tt> surrogate + kernel
|-
|-
| style="text-align:center" | [[File:inbound.svg|28px]]
| style="text-align:center" | [[Inbound]]
| style="text-align:center" | [[Inbound]]
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
Line 515: Line 242:
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-red" |
| style="text-align:center" class="cell-green" |
| style="text-align:center" class="cell-red" |
| style="text-align:center" class="cell-green" |
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| &nbsp;
|-
|-
| style="text-align:center" | [[File:outbound.svg|28px]]
| style="text-align:center" | [[Outbound]]
| style="text-align:center" | [[Outbound]]
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
Line 540: Line 259:
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| &nbsp;
|-
|-
| style="text-align:center" | [[File:rebound.svg|28px]]
| style="text-align:center" | [[Rebound]]
| style="text-align:center" | [[Rebound]]
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
Line 560: Line 274:
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| &nbsp;
|-
|-
| style="text-align:center" | [[File:earthbound.svg|28px]]
| style="text-align:center" | [[Earthbound]]
| style="text-align:center" | [[Earthbound]]
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
Line 569: Line 282:
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
Line 575: Line 287:
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| &nbsp;
|-
|-
| style="text-align:center" | [[File:forerunner.svg|28px]]
| style="text-align:center" | [[Forerunner]]
| style="text-align:center" | [[Forerunner]]
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
Line 600: Line 304:
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| &nbsp;
|-
|-
| style="text-align:center" | [[File:precursor.svg|28px]]
| style="text-align:center" | [[Precursor]]
| style="text-align:center" | [[Precursor]]
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
Line 615: Line 317:
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-red" |
| style="text-align:center" class="cell-green" |
| style="text-align:center" class="cell-red" |
| style="text-align:center" class="cell-green" |
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| &nbsp;
|-
|-
| style="text-align:center" | [[File:simbel.svg|28px]]
| style="text-align:center" | [[Simbel]]
| style="text-align:center" | [[Simbel]]
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
Line 640: Line 334:
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| &nbsp;
|-
|-
| style="text-align:center" | [[File:oracion.svg|28px]]
| style="text-align:center" | [[Oración]]
| style="text-align:center" | [[Oración]]
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
Line 656: Line 349:
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| &nbsp;
|-
|-
| style="text-align:center" | [[FCC]]
| style="text-align:center" | [[File:fcc.svg|28px]]
| style="text-align:center" class="cell-red" |
| style="text-align:center" | [[Feeble C compiler|FCC]]
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
Line 676: Line 364:
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
|-
|-
| style="text-align:center" | [[File:quindle.svg|28px]]
| style="text-align:center" | [[Quindle]]
| style="text-align:center" | [[Quindle]]
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-red" |
| style="text-align:center" class="cell-green" |
| style="text-align:center" class="cell-red" |
| style="text-align:center" class="cell-green" |
| style="text-align:center" class="cell-red" |
| style="text-align:center" class="cell-green" |
| style="text-align:center" class="cell-red" |
| style="text-align:center" class="cell-green" |
| [[A*]] foundation program
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
|-
|-
| style="text-align:center" | [[File:gauntlet.svg|28px]]
| style="text-align:center" | [[Gauntlet]]
| style="text-align:center" | [[Gauntlet]]
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
Line 715: Line 394:
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| &nbsp;
|-
|-
| style="text-align:center" | [[File:senusrets.svg|28px]]
| style="text-align:center" | [[Senusret's browser|Senusret's]]
| style="text-align:center" | [[Senusret's browser|Senusret's]]
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| A* foundation program
|-
| style="text-align:center" | [[Sirius C*]]
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
Line 755: Line 409:
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| &nbsp;
|-
|-
| style="text-align:center" | [[NatPython]]
| style="text-align:center" | [[File:sirius.svg|28px]]
| style="text-align:center" class="cell-red" |
| style="text-align:center" | [[Sirius C*]]
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
Line 768: Line 417:
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
Line 774: Line 422:
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| &nbsp;
|-
| style="text-align:center" | [[SablMap]]
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-red" |
|-
| style="text-align:center" class="cell-red" |
| style="text-align:center" | [[File:natpython.svg|28px]]
| style="text-align:center" | [[NatPython]]
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| &nbsp;
|-
| style="text-align:center" | [[CheckASCII]]
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| &nbsp;
|-
| style="text-align:center" | [[Checkline]]
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| &nbsp;
|-
| style="text-align:center" | [[Flow72]]
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-green" | ✔
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| style="text-align:center" class="cell-red" | ✖
| &nbsp;
|}
|}


===Installation===
===Installing the SDK===
The root directory of the Byblos 1 SDK is whatever the value of the <code>$BYBLOS</code> environment variable is, falling back to <code>/opt/byblos</code> (the default value of <code>$BYBLOS</code>). Within this directory, the following hierarchy is observed:
Byblos 1 can only be run on a <tt>musl</tt> based installation of GNU/Linux, either on the x86-64 or AArch64 microarchitectures. Use of a VM is recommended when this is not directly available on a machine.


{| class="wikitable" width="900px"
The <code>/opt/byblos</code> root has the following hierarchy:
|-
 
! Path
: <tt>/opt/byblos/</tt> &ndash; SDK root
! Description
:: <tt>/opt/byblos/conf/</tt> &ndash; configuration settings
! Notes
:: <tt>/opt/byblos/include/</tt> &ndash; header files (<tt>.h</tt>) and assembly headers (<tt>.inc</tt>)
|-
:: <tt>/opt/byblos/man/</tt> &ndash; manuals
| <tt>$BYBLOS/{}</tt>
:: <tt>/opt/byblos/sbin/</tt> &ndash; script binaries (architecture independent)
| Target root
:: <tt>/opt/byblos/share/</tt> &ndash; shared resources and miscellanea
| Use target's ident in place of <code>{}</code>
:: <tt>/opt/byblos/slib/</tt> &ndash; script dependencies/libraries (architecture independent)
|-
:: <tt>/opt/byblos/system/</tt> &ndash; private folder for internal SDK business
| <tt>$BYBLOS/sbin</tt>
:: <tt>/opt/byblos/target/<u>$t</u>/</tt> &ndash; parent folder for target-specific sub-hierarchies (<tt><u>$t</u></tt> is the target ident)
| "script" binaries
::: <tt>/opt/byblos/target/<u>$t</u>/bin/</tt> &ndash; runnable binaries
|
::: <tt>/opt/byblos/target/<u>$t</u>/lib/</tt> &ndash; static libraries
|-
::: <tt>/opt/byblos/target/<u>$t</u>/share/</tt> &ndash; target-specific miscellanea (e.g. associated production materials, emulator settings, etc.)
| <tt>$BYBLOS/include</tt>
:: <tt>/opt/byblos/tc/<u>$tc</u>/</tt> &ndash; toolchain sysroots
| C and C* header files
 
|
Byblos 1 entirely avoids pre-compiling native programs, instead leaning on the externally-provided toolchains to run C code and Vala code in utilities as necessary. So, it lacks a host <code>bin/</code> folder or associated <code>lib/</code> folder, which are replaced by <code>sbin/</code> and <code>slib/</code> respectively. Hashbangs are used to achieve program invocation.
|-
 
| <tt>$BYBLOS/conf</tt>
Xion Megatrends offers an installation shell script that initialises the above directories, downloads the toolchains and downloads additional SDK files as necessary.
| Configuration settings
 
|
====About the toolchains====
|-
Byblos 1 depends on specially compiled versions of GCC to compile code for the various targets it supports. In total, there are 9 compilers for each host, for a total of 18:
| <tt>$BYBLOS/man</tt>
* GCC <tt>aarch64-linux-musl</tt>
| Documentation files
* GCC <tt>arm-linux-musl</tt>
|
* GCC <tt>x86_64-linux-musl</tt>
|-
* GCC <tt>aarch64-linux-gnu</tt>
| <tt>$BYBLOS/system</tt>
* GCC <tt>arm-linux-gnu</tt>
| SDK internal management data
* GCC <tt>x86_64-linux-gnu</tt>
| reserved for the ''exclusive use'' of the Byblos SDK; outside applications should '''never''' assume anything about this directory's contents or even that it exists at all
* Clang for macOS SDK 10.4
|}
* Clang for macOS SDK 11.0
* MinGW-W64


"Script" binaries are programs that are, by themselves, architecture independent, usually because they are interpreted or compiled just-in-time on loading. These are separated from native binaries which are, as files, specific to the architecture in use. Byblos does not support any architectures other than the one in use on a given system (more exactly, whichever µarch the running kernel is compiled for). For instance, if a user is running a "multilib" system such as on <tt>amd64</tt> with i386 as <code>lib32/</code>, it will only support <tt>amd64</tt>.
Xion Megatrends offers pre-built binaries of all of these, compiled to run from <code>/opt/byblos/tc/&lt;ident&gt;</code>, where <code>&lt;ident&gt;</code> is the Byblos target platform identifier, <code>$TP</code>. An exception to this naming rule is for <code>darwin</code>, where instead <code>darwinx64</code> is used for x86-64 code and the 10.4 SDK and <code>darwina64</code> is used for AArch64 code and the 11.0 SDK. Another exception is for <code>win95</code>, <code>winnt32</code> and <code>winnt64</code>, which all use a single MinGW install available at <code>/opt/byblos/tc/mingw64</code>. <!--


The Byblos 1 SDK operates on the premise that the working development directory can be anywhere, while all tools and support files are either provided within the hierarchy above, or assumed present on the system-level. System-level utilities and libraries should be provisioned using system package managers and treated in full mutual exclusion to Byblos-specific tooling; Byblos stuff is not compiled into <code>/usr/local</code>, and system stuff is never compiled into <code>$BYBLOS</code>. Even if one must manually compile a package from source, it should '''never''' be installed with its <code>--sysroot</code> set to <code>$BYBLOS</code>! (Use <code>/usr/local</code> instead.)
XXX: OpenWatcom 2 and devkitARM not available
====Getting OpenWatcom====
Unfortunately the OpenWatcom 2 project does not provide distro packages or macOS binaries, so it must be built from source. Arch Linux users have the benefit of [//aur.archlinux.org/packages/openwatcom-v2 an AUR package] that mostly automates this, and the pathing dictated by our step-by-step process here should be consistent with that script so there are no quirks in usage.


When developing new SDK components in a source tree, they should be built and installed into <code>$BYBLOS/local/*</code> for testing and personal use. Packaged SDK software downloaded or installed from elsewhere will be configured to be installed into <code>$BYBLOS/*</code>, where it is versioned and stripped and so on.
# Run <code>xcode-select --install</code>
# Follow [//brew.sh/#install brew.sh#install]
# Run <code>brew install dosbox-x</code>
# Manually choose the latest release from [//github.com/open-watcom/open-watcom-v2/releases the repository]
#* Select the source code <tt>.tar.gz</tt> in particular
# <tt>un</tt><code>tar</code> the source into a <code>$dir</code> of your choice
# Set environment variable <code>OWTOOLS=CLANG</code>
# Set environment variable <code>OWDOSBOX=dosbox-x</code>
# Run <code>export OWTOOLS OWDOSBOX</code>
# Run <code>cd $dir</code>
# Run <code>./build.sh</code>
# Run <code>./build.sh rel</code>
# Run <code>sudo mkdir /opt/watcom</code>
# Run <code>sudo cp -a rel/. /opt/watcom/</code>
# Append the following lines to your <tt>.profile</tt> (or your equivalent to <tt>.profile</tt>):
#* <code>WATCOM=/opt/watcom</code>
#* <code>EDDAT=$WATCOM/eddat</code>
#* <code>PATH="$PATH:$WATCOM/armo64"</code>
#* <code>export WATCOM EDDAT PATH</code>
# Run <code>source .profile</code> (or your equivalent to <tt>.profile</tt>)
# Verify this all worked by running <code>wcl386 -h</code> --><!--


<!-- XXX: pending rewrite about Byblos 2
XXX: pending rewrite about Byblos 2
===Removable media and RAM drives on DOS===
===Removable media and RAM drives on DOS===
What <code>$BYBLOS</code> resolves to and its underlying media are distinguished intelligently on Unices, where the canonical resolution of <code>/opt/byblos</code> and its contents can be mount points or symbolic links to just about anything. This is not the case on DOSes, since drive letters come into play. Fortunately, the variance that we wish to accommodate is limited to those drive letters.
What <code>$BYBLOS</code> resolves to and its underlying media are distinguished intelligently on Unices, where the canonical resolution of <code>/opt/byblos</code> and its contents can be mount points or symbolic links to just about anything. This is not the case on DOSes, since drive letters come into play. Fortunately, the variance that we wish to accommodate is limited to those drive letters.
Line 913: Line 515:
* <code>$BYBDRV</code> = <tt>E,A,B,D,C,Z</tt>
* <code>$BYBDRV</code> = <tt>E,A,B,D,C,Z</tt>


The SDK, along with any and all programs that use its support library, will have file I/O subroutines that stitch together the base path with the drive letters to try when resolving paths. Byblos will also provide dynamic, hands-free integration with the <code>$PATH</code> executable resolution approach and will know where to look for <code>#include</code>s, libraries and other data automatically, using support library subroutines. -->
The SDK, along with any and all programs that use its support library, will have file I/O subroutines that stitch together the base path with the drive letters to try when resolving paths. Byblos will also provide dynamic, hands-free integration with the <code>$PATH</code> executable resolution approach and will know where to look for <code>#include</code>s, libraries and other data automatically, using support library subroutines.
-->
==Byblos 2==
Byblos 2 is a purpose-built SDK that includes dedicated stand-alone tools for compiling code and assets for all supported targets. Initially it will run on the same hosts supported by Byblos 1, with wider support to coincide with the porting of Vala to liberate it from conventional host support structures. Its core is comprised of the following programs:
* [[Oración]], an assembler and desymboliser
** Intel 8086, i286, i486, i686, x86-64 v1-v4, ARMv4T, ARMv5TE, ARMv6, ARMv7, ARMv8, SPARC64 V9, Motorola 68000, MOS 6502, MOS 65816, and Itanium/IA-64 are the supported architectures
* [[Feeble C compiler|FCC]], an expressly non-optimising ANSI C compiler
** Uses Oración as its backend
* [[Sirius C*]], a provisional [[C*]] compiler
** Derived from FCC, also uses Oración as its backend
* [[Inbound]], a software build system
** Derived from Make, uses a cut-down in-house derivative
* [[Outbound]], a software packaging system
* [[NatPython]], a scripting interpreter
** Hard fork of Python 3.3
* [[Simbel]], a documentation authoring and generation toolset
* [[Precursor]], a hub-and-spoke version control system
* [[Forerunner]], a source code management system built on top of Precursor
* [[Gauntlet]], a public key cryptosystem for signing and verifying code
* [[Quindle]], a graphical editor program for authoring code
* [[Cigarbochs]], an emulator for debugging and testing code
* Various helper utilities for sanitising and analysing code
 
===Language classes===
The Byblos compiler suite has a rigidly-dictated list of "first-class programming languages", chosen holistically for their combination of ubiquity, expressive power and heritage. Currently, they are as follows:
* ANSI C
* [[C*]]
* FORTRAN, revision 1977 (F77)
* Verilog, revision 2005 (V05)


[[Category:Applications of mechanicalism]][[Category:Unix developments]]
[[Category:Applications of mechanicalism]][[Category:Unix developments]]

Latest revision as of 14:32, 11 December 2024

Byblos SDK
Created by Alexander Nicholi
Initial release unreleased
Written in ANSI C, Make, POSIX sh
OSes Darwin/XNU, GNU/Linux
ISAs Apple silicon, x86-64
Licence ASL 1.1

Byblos is a software development kit developed for Sirius DOS, A* and Unix-based servers, with distinction for MILOTIX and Linux, BSD and Darwin (pan-Unix) support. It is divided into two versions: Byblos 1, a provisional SDK that uses existing compiler toolchains and host infrastructure of Unix-like operating systems, and Byblos 2, the proper SDK that provides its own C compiler, assembler, and the first C* compiler.

Byblos 1

Byblos 1 is the provisional Byblos SDK, running on GNU/Linux with glibc, either on x86-64 or AArch64. These two platforms are the only supported hosts, and on them Byblos can target the following platforms:

  • GNU/Linux with glibc on x86-64
  • GNU/Linux with glibc on AArch64
  • GNU/Linux with glibc on ARMv7HF
  • GNU/Linux with musl on x86-64
  • GNU/Linux with musl on AArch64
  • GNU/Linux with musl on ARMv7HF
  • Microsoft Windows 95, 98 and Me on i386
  • Microsoft Windows NT 4.0+ on i386
  • Microsoft Windows NT 5.1+ on x64
  • Apple macOS 10.4+ on Intel 64
  • Apple macOS 11.0+ on AArch64

All GNU/Linux targets use GCC cross-compilers, while all Windows targets use a single MinGW-W64 cross-compiler and all Apple targets use two clang compilers to generate fat binaries with lipo. Even though Clang is inherently a cross-compiler, two versions of it must be provided since maximal compatibility necessitates using different versions of the proprietary Apple SDK for each microarchitecture: 10.4 provides the earliest x86-64 SDK while 11.0 provides the earliest AArch64 SDK.

Later, support may be added for the following platforms, pending integration of devkitARM and OpenWatcom 2:

  • Nintendo Game Boy Advance on ARMv4T
  • Microsoft Windows 3.1 on i286
  • MS-DOS 5.0+ on i286

All target platforms support console-type applications as well as graphical ones with OpenGL hardware acceleration. Supported languages include ANSI C, C++14, and GNU assembler. Platforms that use OpenWatcom 2 lose C++ support, and both OpenWatcom 2 and devkitARM dependent platforms lack OpenGL support.

Supported targets

i Target Full name ISA Host ASM C C++ bin Notes
agbhb GBA homebrew ARMv4T Scratch-building GBA ROMs.
agbsp GBA sourcepatch ARMv4T Source-patching existing GBA ROMs.
astar Anodyne A* unknown Too early to specify.
darwin macOS x86-64 v1 and ARMv8  
glinuxa64 GNU/Linux + glibc ARMv8.0 Assumes VFPv2 hard float support.
glinuxx64 GNU/Linux + glibc x86-64 v1  
mlinuxa64 GNU/Linux + musl ARMv8.0 Assumes VFPv2 hard float support.
mlinuxx64 GNU/Linux + musl x86-64 v1  
pcdos MS-DOS 5.0+ Intel i286  
win311 Windows 3.11 Intel i286  
win95 Windows 95, 98 & Me Intel i386  
winnt32 Windows NT 4.0 32-bit Intel i386  
winnt64 Windows NT 5.1 64-bit x86-64 v1  

Notes

  • binpacking is a highly portable method of compiling assets statically into binaries
  • For assembly, uncertainty exists about toolchain support on macOS
  • For binpacking, it may eventually work but needs further research

Programs list

i Utility
Hinterlib
Inbound
Outbound
Rebound
Earthbound
Forerunner
Precursor
Simbel
Oración
FCC
Quindle
Gauntlet
Senusret's
Sirius C*
NatPython

Installing the SDK

Byblos 1 can only be run on a musl based installation of GNU/Linux, either on the x86-64 or AArch64 microarchitectures. Use of a VM is recommended when this is not directly available on a machine.

The /opt/byblos root has the following hierarchy:

/opt/byblos/ – SDK root
/opt/byblos/conf/ – configuration settings
/opt/byblos/include/ – header files (.h) and assembly headers (.inc)
/opt/byblos/man/ – manuals
/opt/byblos/sbin/ – script binaries (architecture independent)
/opt/byblos/share/ – shared resources and miscellanea
/opt/byblos/slib/ – script dependencies/libraries (architecture independent)
/opt/byblos/system/ – private folder for internal SDK business
/opt/byblos/target/$t/ – parent folder for target-specific sub-hierarchies ($t is the target ident)
/opt/byblos/target/$t/bin/ – runnable binaries
/opt/byblos/target/$t/lib/ – static libraries
/opt/byblos/target/$t/share/ – target-specific miscellanea (e.g. associated production materials, emulator settings, etc.)
/opt/byblos/tc/$tc/ – toolchain sysroots

Byblos 1 entirely avoids pre-compiling native programs, instead leaning on the externally-provided toolchains to run C code and Vala code in utilities as necessary. So, it lacks a host bin/ folder or associated lib/ folder, which are replaced by sbin/ and slib/ respectively. Hashbangs are used to achieve program invocation.

Xion Megatrends offers an installation shell script that initialises the above directories, downloads the toolchains and downloads additional SDK files as necessary.

About the toolchains

Byblos 1 depends on specially compiled versions of GCC to compile code for the various targets it supports. In total, there are 9 compilers for each host, for a total of 18:

  • GCC aarch64-linux-musl
  • GCC arm-linux-musl
  • GCC x86_64-linux-musl
  • GCC aarch64-linux-gnu
  • GCC arm-linux-gnu
  • GCC x86_64-linux-gnu
  • Clang for macOS SDK 10.4
  • Clang for macOS SDK 11.0
  • MinGW-W64

Xion Megatrends offers pre-built binaries of all of these, compiled to run from /opt/byblos/tc/<ident>, where <ident> is the Byblos target platform identifier, $TP. An exception to this naming rule is for darwin, where instead darwinx64 is used for x86-64 code and the 10.4 SDK and darwina64 is used for AArch64 code and the 11.0 SDK. Another exception is for win95, winnt32 and winnt64, which all use a single MinGW install available at /opt/byblos/tc/mingw64.

Byblos 2

Byblos 2 is a purpose-built SDK that includes dedicated stand-alone tools for compiling code and assets for all supported targets. Initially it will run on the same hosts supported by Byblos 1, with wider support to coincide with the porting of Vala to liberate it from conventional host support structures. Its core is comprised of the following programs:

  • Oración, an assembler and desymboliser
    • Intel 8086, i286, i486, i686, x86-64 v1-v4, ARMv4T, ARMv5TE, ARMv6, ARMv7, ARMv8, SPARC64 V9, Motorola 68000, MOS 6502, MOS 65816, and Itanium/IA-64 are the supported architectures
  • FCC, an expressly non-optimising ANSI C compiler
    • Uses Oración as its backend
  • Sirius C*, a provisional C* compiler
    • Derived from FCC, also uses Oración as its backend
  • Inbound, a software build system
    • Derived from Make, uses a cut-down in-house derivative
  • Outbound, a software packaging system
  • NatPython, a scripting interpreter
    • Hard fork of Python 3.3
  • Simbel, a documentation authoring and generation toolset
  • Precursor, a hub-and-spoke version control system
  • Forerunner, a source code management system built on top of Precursor
  • Gauntlet, a public key cryptosystem for signing and verifying code
  • Quindle, a graphical editor program for authoring code
  • Cigarbochs, an emulator for debugging and testing code
  • Various helper utilities for sanitising and analysing code

Language classes

The Byblos compiler suite has a rigidly-dictated list of "first-class programming languages", chosen holistically for their combination of ubiquity, expressive power and heritage. Currently, they are as follows:

  • ANSI C
  • C*
  • FORTRAN, revision 1977 (F77)
  • Verilog, revision 2005 (V05)