🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #50951

sparc gcc : -mfrw option to disable reg windows

#50951
From: Phil Endecott
Date: Wed, 14 Jul 1993 11:30
20 lines
1545 bytes
The sparc.h file contains the following definition:

/* Nonzero means that we should generate code using a flat register window
   model, i.e. no save/restore instructions are generated, in the most
   efficient manner.  This code is not compatible with normal sparc code.  */
/* This is not a user selectable option yet, because it requires changes
   that are not yet switchable via command line arguments.  */
#define TARGET_FRW (target_flags & 256)

If I remove some comments a few lines further down, I can then compile with the
-mfrw command-line option and generate code that contains no save or restore
instructions.  Compiling simple "hello world" and dhrystone programs seems to work
with this switch enabled.

My question is, why is this "not a user selectable option"?  Is there some subtle
problem with code generated with this switch enabled?  I know that to get
sensible answers, I should compile the libraries with the same options.  Is there
anything else?

--Phil.
Technical Details
Message-ID: <1993Jul14.123003@cs.man.ac.uk>
Path: arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!mcsun!uknet!mucs!endecotp

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,8439abad97c49e2e,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-07-14 17:32:03 PST
Path: arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!mcsun!uknet!mucs!endecotp
From: endecotp@cs.man.ac.uk (Phil Endecott)
Newsgroups: gnu.gcc.help
Subject: sparc gcc : -mfrw option to disable reg windows
Message-ID: <1993Jul14.123003@cs.man.ac.uk>
Date: 14 Jul 93 11:30:03 GMT
Sender: news@cs.man.ac.uk
Organization: Dept Computer Science, University of Manchester, U.K.
Lines: 20