freenode/#sbcl - IRC Chatlog
Search
19:43:55
fiveop
I was looking into implementing a few syscalls with the instruction that stas kindly added. Passing integer arguments is easy enough. Passing in pointers to strings seems to be another matter. I looked into what is done in the alien function related code
19:44:36
fiveop
My impressions is, that a lot of the stuff (around deport etc.) might be necessary as well for syscalls, though I did not fully understand that yet.
19:46:39
fiveop
stassats: thanks for your comment on the syscall snippet. I have a follow up question. If I declare the arg types as you suggested and check in the lisp code that I do not pass anything in but (unsigned-byte 64), will the compiler handle for me dealing with values larger than most-positive-fixnum
19:49:33
fiveop
Suppose I write (syscall1-no-return (1+ most-positive-fixnum) 0), won't the first argument be a bignum (assuming it cannot be optimized away, because it's not a constant but a input derived value)?
20:05:25
fiveop
(syscall1-no-return 231 (1+ most-positive-fixnum)) yields a 0 exit code (as it should), in particular, it does not crash! :)
20:11:38
fiveop
is it possible that the two instructions share the same label (e.g. L8 and L9) in the disassemble output, but only one is shown?
20:14:06
fiveop
so I thought, that maybe the error trap has two labels (L8 and L9) but only one is shown
20:47:41
fiveop
I want to say that a temporary is valid after the syscall instruction was executed. Can I do that with :from (:eval N) ?
20:56:24
stassats
it just saves all registers, if you know which is are volatile you can specify them
21:21:45
fiveop
I can syscall open now and get the right fd, but something with the path is still not working (I tried vector-sap for conversion): https://gitlab.com/snippets/1703371
22:02:47
stassats
i think i'm giving up on a smart solution for source locations, i'll just handle each standard reader macros manually, fallback to the old mechanism for custom reader macros and provide an interface for handling them
2:51:17
corci
Project sbcl-master-windows » Windows_7_32bit build #2105: FAILURE in 29 min: http://ci.cor-lab.de/job/sbcl-master-windows/label=Windows_7_32bit/2105/
3:02:51
corci
Project sbcl-master » without-threads,ubuntu_trusty_64bit build #3122: FIXED in 14 min: http://ci.cor-lab.de/job/sbcl-master/featureset=without-threads,label=ubuntu_trusty_64bit/3122/