Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 May 2005 17:12:20 +0300
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        "M. Warner Losh" <imp@bsdimp.com>
Cc:        freebsd-standards@freebsd.org
Subject:   Re: Standard type for code pointers?
Message-ID:  <20050503141220.GA925@gothmog.gr>
In-Reply-To: <20050429.005317.69580336.imp@bsdimp.com>
References:  <20050420155407.GA844@falcon.midgard.homeip.net> <84dead720504200910441b9108@mail.gmail.com> <20050420162332.GB52948@orion.daedalusnetworks.priv> <20050429.005317.69580336.imp@bsdimp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2005-04-29 00:53, "M. Warner Losh" <imp@bsdimp.com> wrote:
> In message: <20050420162332.GB52948@orion.daedalusnetworks.priv>
>             Giorgos Keramidas <keramida@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 :-)

Bingo!  Memory models was precicely the thing I had in mind :-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050503141220.GA925>