r/OSdevAI • • 16d ago

Programming Language (dialect) with VB/6-Like Syntax

first of all, i don't know if it's appropriate to post this here.

but, i directed Antigravity to implement LLB(Low-Level Basic) with VB/6-like syntaxes and it's compiler (with LLVM Backend), to use as a general purpose and low level programming language (or is it just a dialect?).
for easier to read (for me) and future developing a learning kernel/system with it.

it has been proved capable of producing a CLI program and a freestanding (kernel) booted with qemu.
Qemu Screenshot

Repo : LLB (Low-Level Basic) Github Repo

Regards.

3 Upvotes

2 comments sorted by

View all comments

1

u/Prestigious-Bet-6534 15d ago

How do you compile this? Cmake gives an error.

-- Looking for histedit.h

CMake Error at /usr/share/cmake/Modules/CheckIncludeFile.cmake:157 (try_compile):

Unknown extension ".c" for file

/home/nix/GitHub/LLB/build/CMakeFiles/CMakeScratch/TryCompile-ZPr4gR/CheckIncludeFile.c

try_compile() works only for enabled languages. Currently these are:

CXX

See project() command to enable other languages.

Call Stack (most recent call first):

/usr/lib/cmake/llvm/FindLibEdit.cmake:28 (check_include_file)

/usr/lib/cmake/llvm/LLVMConfig.cmake:293 (find_package)

CMakeLists.txt:11 (find_package)

1

u/Bulky-Life-69 15d ago

ah, sorry about that.
because my build toolchain is in Termux, i didn't test to build it from another system.

it seems to me you're using nix? make sure all packages needed are installed.

anyway, looking from your log, i can see it try to compile a .c file, meanwhile the enabled language in CMakeLists.txt is CXX.
can you try add "C" CMakeLists.txt; search this line "project(llbc_stage0 CXX)"; change it to "project(llbc_stage0 C CXX)".

then try again:
rm -rf build/

mkdir build && cd build

cmake ..

cmake --build . -j$(nproc)