IRC channel logs
2026-05-23.log
back to list of logs
<roconnor>Nice. I got my vm to run on the mythical Linux RiscV64E as well. <roconnor><roconnor> looks like a carefully crafted RV32E binary will run on any RiscV machine. <roconnor>Unfortunately I had another issue which is that the command line arguments are passed differently (in a sense) on RiscV32 vs RiscV64. <roconnor>But that and my ELF header were the only issued I ended up with. <roconnor>And with some dubious machine code, I did get reading command line arguments for the input and output filenames working simultaneously on both RiscV32 an RiscV64. <xentrac>making this possible was not really one of the objectives of the RV64 design, so it's remarkable that you've achieved it. You should write it up! <roconnor>It's only possible due to my very very limited use of command line arguments. <roconnor>I very very carefully pull a pointer to a string out of the argv and call sys_openat <roconnor>then I have a file handle which is apparently 32 bits and I'm fine. <xentrac>yeah, your first 2³² - 1 filehandles will be 32 bits <roconnor>I mean, file handles are 32 bits even on 64 bit Linux.