Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.compilers    |    Compiler construction, theory, etc. (Mod    |    2,753 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 2,112 of 2,753    |
|    Tony Finch to Swati    |
|    Re: Help needed with function pointer ex    |
|    19 Jan 12 14:07:53    |
   
   From: dot@dotat.at   
      
   Swati wrote:   
   >   
   >We are doing an analysis on the usage of function pointers.   
   >We have considered one such example as GCC which uses function pointers.   
   >Can you suggest any other application which uses function pointers   
   >extensively.   
      
   Function pointers are often a nice way to implement state machines,   
   for instance http://dotat.at/cgi/git?p=unifdef.git;a=blob;f=unifdef.c   
      
   The byte code in a threaded code interpreter is often just a list of   
   function pointers.   
      
   There are a lot of function pointers in the unix kernel. Have a look   
   at Lions' commentary, Stevens' TCP/IP Illustrated volume 2, and   
   McKusick & Neville-Neil's Design and Implementation of the FreeBSD   
   operating system.   
      
   Tony.   
   --   
   f.anthony.n.finch http://dotat.at/   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca