
7 Sep
2006
7 Sep
'06
9:19 a.m.
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.