[Yhc] YHC, NHC & HEAP_OFF_N1
Kartik Vaddadi
itskartik at iitb.ac.in
Thu Sep 7 09:19:27 EDT 2006
Hello,
I'm a newbie at yhc & nhc, and I wonder: The nhc bytecode that Tom
Shackell's presentation gives -- can't it be simplified by eliminating
the HEAP_OFF_N1 and placing 'putStrLn' before 'show' in the heap, like this:
PUSH_HEAP
HEAP_CVAL putStrLn
HEAP_CVAL show
HEAP_INT 42
RETURN_EVAL
Is there some fundamental reason why nhc can't generate such code (which
yhc does not suffer from) or is this just an artefact of the current
implementation? Thanks, and sorry if the question was dumb.
--
Kartik Vaddadi.
More information about the Yhc
mailing list