K. S. Ernest (iFire) Lee
K. S. Ernest (iFire) Lee
> Something like `--call ` to call an argument-less function Idea from @fwsGonzo on discord.
ok, I merged it, so let's try ld64 with shared.so iFire — Today at 08:28 So ld64 is something we include in our emulated linux fwsgonzo — Today at 08:29...
Explanation from @fwsGonzo 1. The guest program asks to open a file 2. libriscv executes a function we provide, passing the path 3. We tell the emulator if the file...
From earlier. > look at the difference between TCC and full-binary translation to be honest if tcc is not slower than gdscript I'm pretty happy. > libriscv in interpreter mode...
> I think that the next steps should be to let me work on pure shared objects, but continue working on the rest using dynamic or static executables > so,...
> im making it a system call that lets you register a function by name ```c #include extern __attribute__((used)) int dynamic_hello(); static inline void introduce(const char* name, const void* ptr)...
From @fwsGonzo > alright, I have it working now ```c #include #include extern __attribute__((used, retain)) int dynamic_hello(); static inline void introduce(void*(*func)(const char*)) { register long a0 asm("a0") = (long)func; register...
Command to call. ```bash ./rvlinux --no-translate -v GDExtensionTemplate --call initialize_godot_extension_riscv ```
> thinking more about it, I don't think it makes sense to just load a shared object we will probably be better off with making a RISC-V program who is...
I've used a guess a style formatter with materialx. Details in the next post.