In reply to @bosinski2023 "not a wrapper, but": Thanks, i knew about it. It's a port for llama2.c not a port for llama.cpp. I also found this: https://github.com/treeform/llama2.nim Me myself code in BCX: https://www.bcxbasiccoders.com/ It's a modern Basic dialect. There is no llama.cpp/llama2.c wrapper for BCX. So i wish to find out how could i compile to dll this .nim file https://github.com/treeform/llama2.nim/blob/master/src/llama2.nim so i could call functions from llama2.nim.dll in my BCX code. BCX works with dll-s in such way: DECLARE FUNCTION Example_Function$ LIB "EXAMPLE_DLL.dll" ALIAS "Hello_World"(Param$) PRINT "Calling function from dll says: ", Example_Function$("hello") And the function in .dll looks like this: FUNCTION Hello_World$(A$) EXPORT LOCAL T$ T$ = A$ & ",World" FUNCTION = T$ END FUNCTION