7 ms·
I recently learned about a really cool usecase of signals: https://repo.hca.bsc.es/gitlab/epi-public/risc-v-vector-simulation-environment/-/wikis/vehave-user-gu
by camel-cdr 3y ago
I recently learned about a really cool usecase of signals: https://repo.hca.bsc.es/gitlab/epi-public/risc-v-vector-simulation-environment/-/wikis/vehave-user-guide https://repo.hca.bsc.es/gitlab/epi-public/risc-v-vector-simu...
It's a userspace risc-v vector extension emulator that handles SIGILL signals to emulate the missing vector instructions on risc-v cpus without the vector extension.
It can just be inserted in to any binary with LD_PRELOAD.
- nayuki 3y agoI used the Intel Software Development Emulator (SDE) about a decade ago. It lets you develop and test software on a CPU that doesn't have the necessary vector extensions (AVX, etc.). I presume it uses the SIGILL trapping technique. In practice, I found it to be about 1000× slower than native - but that's why it's intended to be a development tool. https://www.intel.com/content/www/us/en/developer/articles/tool/software-development-emulator.html https://www.intel.com/content/www/us/en/developer/articles/t...