itsy-linux
itsy-linux copied to clipboard
is it possible to do syscall since its a linux port?
hi i recently want to use forth to build an busybox like toolsets since the tiny size, i choose this forth but i dont know how to do syscall via forth code on it
will you please gave any sample about this? i think after that i could build my own libc like words for further tasks
Hi, please check implementation of the "accept" word. It uses syscall under the hood. Please let me know if this answers your question or something is still unclear.
sorry what i mean is call syscall in forth code not in your asm sourcecode
like those you wrote in eforth.forth
It is totally possible to create a "syscall" forth word that would take parameters from the stack, put them in the appropriate registers and call a syscall. I may implement this sometime in the future but as of now unfortunately I don't have time for that :(.