* Copyright (c) 1994-1998.
*
* $RCSfile: Assembler.c,v $
- * $Revision: 1.27 $
- * $Date: 2000/04/27 16:35:30 $
+ * $Revision: 1.29 $
+ * $Date: 2000/05/10 09:00:20 $
*
* This module provides functions to construct BCOs and other closures
* required by the bytecode compiler.
extern void* getNameOrTupleClosureCPtr ( int /*Cell*/ c );
+/* Defined in this file ... */
+AsmObject asmNewObject ( void );
+void asmAddEntity ( AsmObject, Asm_Kind, StgWord );
+int asmCalcHeapSizeW ( AsmObject );
+StgClosure* asmDerefEntity ( Asm_Entity );
+
/* --------------------------------------------------------------------------
* Initialising and managing objects and entities
* ------------------------------------------------------------------------*/
}
}
- ASSERT(k == bco->n_instrs);
+ ASSERT((unsigned int)k == bco->n_instrs);
break;
}
}
-#if 0
-void asmMarkObject ( AsmObject obj )
-{
- ASSERT(obj->num_unresolved == 0 && obj->closure);
- obj->closure = MarkRoot(obj->closure);
-}
-#endif
-
/* --------------------------------------------------------------------------
* Keeping track of the simulated stack pointer
* ------------------------------------------------------------------------*/
return con;
}
-void asmEndCon( AsmCon con )
+void asmEndCon( AsmCon con __attribute__ ((unused)) )
{
}
return caf;
}
-void asmEndCAF( AsmCAF caf )
+void asmEndCAF( AsmCAF caf __attribute__ ((unused)) )
{
}
return bco;
}
-void asmEndBCO( AsmBCO bco )
+void asmEndBCO( AsmBCO bco __attribute__ ((unused)) )
{
}
return bco->sp;
}
-void asmEndCase( AsmBCO bco )
+void asmEndCase( AsmBCO bco __attribute__ ((unused)) )
{
}
setSp(bco, start);
}
-void asmBeginUnpack( AsmBCO bco )
+void asmBeginUnpack( AsmBCO bco __attribute__ ((unused)) )
{
/* dummy to make it look prettier */
}