[Chicken-hackers] ABI woes

2015-07-10 Thread felix . winkelmann
Hello! After thinking about this, it seems to be that the "compound literal" approach is the best one. What this means is that CPS-calls are changed in such a manner, that arguments are passed rthrough a pointer to a C_word-array (so it doesn't have to do anything with compound literals, that w

Re: [Chicken-hackers] ABI woes

2015-07-10 Thread Peter Bex
On Fri, Jul 10, 2015 at 12:23:36PM +0200, felix.winkelm...@bevuta.com wrote: > Hello! > > After thinking about this, it seems to be that the "compound literal" > approach > is the best one. What this means is that CPS-calls are changed in such a > manner, that arguments are passed rthrough a po

[Chicken-hackers] ABI woes

2015-07-10 Thread felix . winkelmann
> > - There is no need for "rest-arg wrappers", functions that extract the rest > > argument and then call the actual compiled C function. This can be done > > directly from the argvector. > > This is cool, but if I understand correctly it also means that all the > C_fast_retrieve_proc(lf[123]

Re: [Chicken-hackers] Scheduler fdset assert patch

2015-07-10 Thread Jonathan Chan
Hello all, Here is the scheduler assert patch, test cases, and integration with the test suite combined into a single patch! After a bit more testing with code that used a lot of threads, I ended up looking at how make-thread uses ##sys#make-thread and added some missing code to the patch's usage