Standard type for code pointers?

M. Warner Losh imp at bsdimp.com
Thu Apr 28 23:54:56 PDT 2005


In message: <20050420162332.GB52948 at orion.daedalusnetworks.priv>
            Giorgos Keramidas <keramida at ceid.upatras.gr> writes:
: > Is 'register_t' guaranteed to be wide enough?
: 
: AFAIK, no.  Portable C code cannot assume that a function pointer is
: small enough to fit in a single machine register.  Some obscure
: architecture may choose to represent function entry points with as
: many register as it needs.

You mean like medium model (64k data, larger code) 8086 :-)

Warner


More information about the freebsd-standards mailing list