On Thu, 29 May 2003, Thomas Grill wrote:
Hi Kjetil, k_cext seems to be very interesting.... my questions:
- does the scripted C code get compiled on the fly? (and how is the
compilation delay handled?)
The c code is compiled, linked, and dynamically loaded only when an k_cext object is created.
from k_cext.c:
void k_cext_setup(void) { k_cext_class = class_new(gensym("k_cext"), (t_newmethod)k_cext_new, (t_method)k_cext_free, sizeof(t_k_cext), 0, A_GIMME, 0);
... }
static void *k_cext_new(t_symbol *s, t_int argc, t_atom* argv) {
<some initialization> <for each atom in argv>: <generate c code> <compile c code> <link c code> <dynamically load c code into pd> <delete c code source and object files> }
- which C compilers can be used (and where are they configured)?
gcc for linux, and microsoft compiler for window.
- are there platform-dependencies?
Yes, but its not a big problem. It does work for linux and windows, and should work for macosx too. See the k_cext_<os>.c files.
best greetings, Thomas
----- Original Message ----- From: "Kjetil S. Matheussen" k.s.matheussen@notam02.no To: "Frank Barknecht" fbar@footils.org Cc: pd-list@iem.kug.ac.at Sent: Thursday, May 29, 2003 2:12 PM Subject: Re: [PD] An Iterator object
On Thu, 29 May 2003, Frank Barknecht wrote:
Hallo, Kjetil S. Matheussen hat gesagt: // Kjetil S. Matheussen wrote:
Doing things like this is nice with my k_cext external: http://www.notam02.no/~kjetism/pd/bin/
Also pyext and the scheme external come to mind.
Yes, but you cant edit directly in the pd-window with them. And you dont get the raw speed of C either.
--
PD-list mailing list PD-list@iem.kug.ac.at http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-list