/* -----------------------------------------------------------------------------
- * $Id: MachRegs.h,v 1.3 1999/01/18 14:31:50 sof Exp $
+ * $Id: MachRegs.h,v 1.5 1999/06/25 09:13:38 simonmar Exp $
+ *
+ * (c) The GHC Team, 1998-1999
*
* Registers used in STG code. Might or might not correspond to
* actual machine registers.
#endif /* hppa */
/* -----------------------------------------------------------------------------
- The Intel iX86 register mapping
+ The x86 register mapping
Ok, we've only got 6 general purpose registers, a frame pointer and a
stack pointer. \tr{%eax} and \tr{%edx} are return values from C functions,
#define REG(x) __asm__("%" #x)
+#ifndef not_doing_dynamic_linking
#define REG_Base ebx
+#endif
#define REG_Sp ebp
#if STOLEN_X86_REGS >= 3