[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Getting the callers environment in c
- From: Tony Finch <dot@...>
- Date: Wed, 9 Mar 2011 00:39:54 +0000
On Tue, 8 Mar 2011, Sean Conner wrote:
> It was thus said that the Great Sam Roberts once stated:
> >
> > While ANSI allows sizeof(void (*)()) to be > sizeof(void*), its pretty
> > unusual (I've never seen it).
>
> You do have to go back to the MS-DOS days (say, mid-80s, early 90s) for
> this to be true.
There are other cases such as PICs where the code address space is larger
than the data address space. There are also odd cases (e.g. PDP11) where
the pointers are the same size but the the same address refers to
different banks of memory depending on whether it is used for code or
data.
Tony.
--
f.anthony.n.finch <dot@dotat.at> http://dotat.at/
Trafalgar: Cyclonic at times in southwest, otherwise mainly easterly or
southeasterly, backing northeasterly in far northwest, 5 to 7, occasionally
gale 8 in north and east. Moderate or rough. Thundery showers. Good,
occasionally poor.