On Monday 27 March 2006 12:57, Simon Marlow wrote: > quotInteger2Expzh_fast is the function you are adding to PrimOps.cmm to > implement the primop. The patch in your original message indicated that > you had added a stub for this function, so it should link ok. I don't > understand what has gone wrong. > > You could check that indeed ghc/rts/PrimOps.o contains a definition for > this symbol (nm ghc/rts/PrimOps.o), and also check that the symbol is > defined in ghc/rts/libHSrts.a. Hello,
The symbol quotInteger2Expzh_fast was indeed not defined in ghc/rts/PrimOps.o. It turned out that simply adding some "real" code to the body of quotInteger2Expzh_fast and recompiling caused a definition of the symbol to be added to PrimOps.o. So, apparently, the definition of a symbol for an empty Cmm body is (sometimes?) discarded. In any case, I managed to define suitable new primitive operations for my Haskell programs. Thanks a lot for your generous help. Best regards Thorkil _______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users