K. S. Ernest (iFire) Lee

Results 1116 comments of K. S. Ernest (iFire) Lee

From reading https://github.com/fwsGonzo/rvscript/blob/master/engine/mods/hello_world/scripts/src/gameplay.cpp. The translated design seems to be: ```c++ // RSICV #define PUBLIC(x) extern "C" __attribute__((used, retain)) x PUBLIC(GDNativeBool summator_library_init(const GDNativeInterface *p_interface, const GDNativeExtensionClassLibraryPtr p_library, GDNativeInitialization *r_initialization)); ``` ```c++...

I was able to provide a main() and call that singular function maybe there some room to work with. It crashes with unaligned memory access in librisc. Will post later...

``` /opt/libriscv/emulator/build/rvlinux game/bin/summator/libgdsummator.linux.release.64.elf >>> Program exited, exit code = 0 (0x0) Instructions executed: 59159 Pages in use: 59 (236 kB memory) ``` [libgdsummator.linux.release.64.zip](https://github.com/fwsGonzo/libriscv/files/8501656/libgdsummator.linux.release.64.zip) I'll try to describe the environment but...

So using the `testsuite`64 I was able to load that file up to the opening `/etc/hostname` and then it stops from a windows embedded into Godot Engine binary. Still looking...

![image](https://user-images.githubusercontent.com/32321/163725200-640fa7b8-08f6-4bc4-baea-aa710ab2342c.png) https://github.com/fwsGonzo/libriscv/blob/master/lib/libriscv/win32/system_calls.cpp#L268-L302 Works with newlib64. Although I have no idea why linux64 is failing with opening `/etc/hostname`.

I thought rvscript was using linux64. I missed the detail! The explanations are helpful!

I only need this one call from the starting comment. ``` address = machine.address_of(p_entry_symbol.utf8().get_data()); machine.vmcall(address, &gdnative_interface, this, &initialization); ``` It does look tough though. I also had some problems with...

Thinking about this: 1. It should be possible execute main() on the riscv program 1. inside of main() it can has a bool syscall(SYSCALL_GODOT_GDEXTENSION, const GDNativeInterface *p_interface, const GDNativeExtensionClassLibraryPtr p_library,...

I'd like to have the scripting to be done via riscv programs. > Godot extension a plugin that loads a RISC-V program and interfaces with Godot using your plugin. I...

I was thinking about your usage described here from your whitepaper. So like a remixable keybase. ![image](https://user-images.githubusercontent.com/32321/109086818-28c99f80-76c1-11eb-80da-023cb90b283f.png)