News for hackers. Stuff that matters.
Re:Wasmjit: Kernel Mode WebAssembly Runtime for Linux by comesee on Wednesday September 26, 2018 @04:37AM (#18073960)
Wasm has efficient 16/8 byte load/store instructions. 16/8 bit data types are irrelevant on x86 since it internally uses 32 bit registers anyway.
Re:Wasmjit: Kernel Mode WebAssembly Runtime for Linux by ChickeNES on Wednesday September 26, 2018 @05:19AM (#18074193)
Huh? x86/x86_64 has segmented registers that can be used as 64 bit (rax), 32 bit (eax), 16 bit (ax), and the upper and lower 8 bits of the latter (ah,al). Not to mention I/O ports which use 16 bit addresses and allow for 8, 16, and 32 bit accesses, and various internal processor data structures that have 8 or 16 bit wide fields, among other uses.
Re:Wasmjit: Kernel Mode WebAssembly Runtime for Linux by comesee on Wednesday September 26, 2018 @01:29PM (#18078269)
Performing operations using the segmented registers is no faster than using the 32-bit analogues. Benchmark an add of eax,edx vs Al,dl in a loop.