Xref: utzoo comp.lang.c:12269 comp.std.c:334 Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!nrl-cmf!cmcl2!rutgers!bellcore!faline!thumper!ulysses!andante!alice!ark From: ark@alice.UUCP (Andrew Koenig) Newsgroups: comp.lang.c,comp.std.c Subject: Re: Calling functions by address Message-ID: <8153@alice.UUCP> Date: 31 Aug 88 20:14:17 GMT References: <679@mssx.UUCP> <758@goofy.megatest.UUCP> Organization: AT&T Bell Laboratories, Liberty Corner NJ Lines: 12 > From article <679@mssx.UUCP>, by src@mssx.UUCP (Pleschutznig Andreas): > 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]); Before you travel this route, I suggest you measure the relative time it takes to execute a switch vs. to call a function. You may find that the switch is faster. -- --Andrew Koenig ark@europa.att.com