CompuServe Messages

#C Compilers: which one?

    25-Jul-89 11:58:29
Fm: Richard Rae/SYSOP 76703,4253
To: John Draper 76703,4322
<Looking over at Dave, nodding, and waiting for him to finish, then turning back to Larry> Right. If the problem is that you're coming in from the outside world somewhere and your registers aren't right for C, but you have a big chunk of C code to do, you'd set up the registers properly, then call the C function. Same thing on exit: when you return, use the asm to straighten it back out. So it'd look something like: asmfunc() { do_register_setup cfunc() do_register_desetup } How does this look? Question: where is this "somewhere external to the program" of which you speak? Looking at it from a single-tasking aspect, the only thing you could be talking about is calling a C fragment from another language. Since I'm pretty sure that's not what you're doing, you must be talking about some sort of multitasking thing; inter-process stuff, or interrupts, or something. I'm curious about this. Could you give me an example, using the Amiga's environment, where a C function would be called by, say, another C program which is "somewhere external"? Rick