I’m studying pointers in risc v assembly, but seeing a code from my professor made me wonder if he made an error, or if I’m missing something. The exercise was about converting from C to Assembly Risc V, and I thought that, because in C, given a variable array[N], array is a pointer to array… Read More pointers in assembly risc v
we can read here that the interrupt attribute keyword is use for ARM, AVR, CR16, Epiphany, M32C, M32R/D, m68k, MeP, MIPS, RL78, RX and Xstormy16. does it have any impact on riscv compilation using riscv32-***-elf-gcc compilers? >Solution : There is a separate page for RISC-V which claims it works. You can find it here. Also… Read More is there any use of __attribute__ ((interrupt)) for riscv compilers?
According to this system calls table, linux system calls are different across architecture, but IMO syscalls are higher level encapsulation which do not depent on any specific architechture. Why is it designed this way? In a specific case, riscv64 linux doesn’t have mkdir, instead it has mkdirat, but weirdly it doesn’t have rmdir or rmdirat,… Read More Why are linux system calls different across architectures