Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.compilers > #436

Re: Help needed with function pointer examples

From Tony Finch <dot@dotat.at>
Newsgroups comp.compilers
Subject Re: Help needed with function pointer examples
Date 2012-01-19 14:07 +0000
Organization dotat labs
Message-ID <12-01-037@comp.compilers> (permalink)
References <12-01-006@comp.compilers>

Show all headers | View raw


Swati <swatirathi@cse.iitb.ac.in> 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  <dot@dotat.at>  http://dotat.at/

Back to comp.compilers | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Help needed with function pointer examples Swati <swatirathi@cse.iitb.ac.in> - 2012-01-06 12:13 +0530
  Re: Help needed with function pointer examples Uli Kusterer <ulimakesacompiler@googlemail.com> - 2012-01-15 03:41 +0100
    Re: Help needed with function pointer examples arnold@skeeve.com (Aharon Robbins) - 2012-01-16 19:28 +0000
  Re: Help needed with function pointer examples glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2012-01-15 11:27 +0000
    Re: Help needed with function pointer examples torbenm@diku.dk (Torben Ægidius Mogensen) - 2012-01-16 17:33 +0100
      Re: Help needed with function pointer examples Hans-Peter Diettrich <DrDiettrich1@aol.com> - 2012-01-17 16:28 +0100
  Re: Help needed with function pointer examples Tony Finch <dot@dotat.at> - 2012-01-19 14:07 +0000

csiph-web