[Yhc] Re: CAF vs 0-arity function question
Simon Marlow
simonmarhaskell at gmail.com
Tue May 9 03:54:43 EDT 2006
Robert Dockins wrote:
> The HBC bytecode format has different constant tags for the folloing:
>
> 1) CAF, tag 'A'
> 2) 0-arity function, tag '0'
>
> http://haskell.org/haskellwiki/Yhc/RTS/hbc
>
> Why the distinction? Maybe I don't fully understand, but I thought that a
> 0-arity function _was_ a CAF?
>
> The runtime seems to treat them very much the same (although I can't be quite
> sure -- reading C gives me a headache ;)
Maybe a 0-arity function is a non-updatable CAF?
Cheers,
Simon
More information about the Yhc
mailing list