So I just realized that the C backend compiler was not the one by default, and that all my "tests" were actually done with ASM. I've now added the C compiler as default, but I cannot find anything about it in the documentation. There is a section about inline ASM, I think there should be one for C as well. And something about the C compiler at all, as the only was to know about that is to read the 6.0 changelog thread. Newcomers would probably completely miss that feature that took more than 1 year to develop; a bit of a shame no?
I'm trying to find something about how the C inline is implemented; like with SpiderBasic you have to add an underscore or a v_ for variables, etc. How does it work in PB?
Code: Select all
Procedure foo()
Debug "Hello world"
EndProcedure
OpenConsole()
! void dbg(void) {
! puts("oihjoiJ");
! printf("oihjoiJ");
! foo();
! }
! dbg();
Input()