Calling functions by address
Pleschutznig Andreas
src at mssx.UUCP
Mon Aug 29 19:07:48 AEST 1988
Suppose following:
We want to write a software emulation for another processor on UNIX
So the main problem is to get into the emulation routines as fast as possible,
and therefore it doe not seem to be good enough to do
switch (code) {
case ..
case ..
}
So we thought of doing that job by declaring the addresses of the emulation
routines and jumping to the routines by address like this
(*addressarray[code]);
I know, I know that *does not* work, but maybe there is someone knowing to
get around.
More information about the Comp.lang.c
mailing list