From 6fbbd40feed0d23eb1d2504b70054ec001e95bd9 Mon Sep 17 00:00:00 2001 From: simonmar Date: Thu, 13 Jan 2005 16:04:52 +0000 Subject: [PATCH] [project @ 2005-01-13 16:04:52 by simonmar] Improve a comment --- ghc/includes/MachRegs.h | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/ghc/includes/MachRegs.h b/ghc/includes/MachRegs.h index 6f4b1ac..0261fe7 100644 --- a/ghc/includes/MachRegs.h +++ b/ghc/includes/MachRegs.h @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: MachRegs.h,v 1.17 2004/11/21 22:25:24 desrt Exp $ + * $Id: MachRegs.h,v 1.18 2005/01/13 16:04:52 simonmar Exp $ * * (c) The GHC Team, 1998-1999 * @@ -15,9 +15,15 @@ * only in here please. */ -/* define NO_REGS to omit register declarations - used in RTS C code - * that needs all the STG definitions but not the global register - * settings. +/* + * Defining NO_REGS causes no global registers to be used. NO_REGS is + * typically defined by GHC, via a command-line option passed to gcc, + * when the -funregisterised flag is given. + * + * NB. When NO_REGS is on, calling & return conventions may be + * different. For example, all function arguments will be passed on + * the stack, and components of an unboxed tuple will be returned on + * the stack rather than in registers. */ #ifndef NO_REGS -- 1.7.10.4