Help with Macintosh programming

macintosh programming, mac programming, mac os programming, mac os x programming, mac programming language, mac programing

Help! Code Generator Fatal Error???

A coworker receives the following message when attempting to compile some
C++ code under MPW:

### Code Generator Fatal Error
### UnspillReg

### Within PrintTheData__19CMakeFlatFileDialogFi (Error 2020): Register
lockup, can’t use required register ##
### IC = 7078, offset = 19649
### MPW Shell – execution of fluff.makeout terminated
etc…

Sounds to me kind of like the code wants to use a register which is already
being used for something else.  I’ve looked at the source, but don’t see
anything obvious.  The source was written in-house by a Windows programmer
and has several calls to XVT if that is a clue.

Can anyone fill me in on just what this error message is trying to tell me?

—————————————————-
– Steve Herman – PrISMS
– Computer Sciences Corporation
– Marshall Space Flight Center
– Huntsville, AL
—————————————————-

.
posted by admin in Uncategorized and have Comment (1)

One Response to “Help! Code Generator Fatal Error???”

  1. admin says:

    - Hide quoted text — Show quoted text -

    steve.her…@msfc.nasa.gov (Steve Herman) writes:
    > A coworker receives the following message when attempting to compile some
    > C++ code under MPW:

    > ### Code Generator Fatal Error
    > ### UnspillReg

    > ### Within PrintTheData__19CMakeFlatFileDialogFi (Error 2020): Register
    > lockup, can’t use required register ##
    > ### IC = 7078, offset = 19649
    > ### MPW Shell – execution of fluff.makeout terminated
    > etc…

    > Sounds to me kind of like the code wants to use a register which is already
    > being used for something else.  I’ve looked at the source, but don’t see
    > anything obvious.  The source was written in-house by a Windows programmer
    > and has several calls to XVT if that is a clue.

    > Can anyone fill me in on just what this error message is trying to tell me?

    There’s probably nothing wrong with your code, except having an expression
    that was complicated enough to make the compiler run out of registers for
    temporary results.

    While the code is no doubt legal C++, the fact of a 68000 running out of
    registers is a likely sign that the code is too complex for maintainence
    programmers to understand, so you may as well break the expression up into
    smaller bits anyway… :-)

    – Bruce