10:07:24heisigSuccess! I can now execute arbitrary vectors of bytes as x86 assembler. It only took me two ours of reading manpages and tinkering with GDB.
10:07:58heisigThis is a prerequisite for writing some snippet benchmarks.
10:11:08heisigI will now switch back from C to Lisp. SBCL can't address bytes and call MMAP, too, and I won't have to deal with this humongous bullshit.
10:11:19heisigEvery few months, I forget how horrible it is.
10:12:27heisigFrom the last two hours, I spend most of the time figuring out linker problems and casting pointers. What a mess.
10:13:34heisigI think it really doesn't matter that much how I generate the assembler instructions though. The snippets, callees and callers are all very short.
10:13:59beachSo why don't you just write it in NASM?
10:15:15heisigThat is a good idea. I will give it a try.
10:15:43no-defun-allowedFrom what I read, there is sb-alien:alien-funcall to call an alien function object, but I don't know how to make an alien function object. But NASM might be a better choice for writing assembler snippets.
10:16:54heisigAfter my recent encounter with C, NASM and x86 assembler might be downright soothing.