Menu

Duplicate EQU's - Is this a compiler problem?

joe rocci
2009-08-11
2013-05-30
  • joe rocci

    joe rocci - 2009-08-11

    In trying to resolve an interrupt crash problem I'm having, I noticed that the compiler output asm contains duplicate EQU assignments, ie, two variable names assigned to the same memory location. I'm using the latest build as of Aug 9. Is this a bug???

    ;Set aside memory locations for variables
    DELAYTEMP EQU 112
    DELAYTEMP2 EQU 113
    SYSCALCTEMPX EQU 112
    SYSDIVLOOP EQU 116
    SYSSTRINGLENGTH EQU 118
    SysCalcTempA EQU 117
    SysCalcTempB EQU 121
    SysSTATUS EQU 127
    SysStringA EQU 119
    SysStringA_H EQU 120
    SysStringB EQU 114
    SysStringB_H EQU 115
    SysW EQU 126
    SysWaitTemp10MS EQU 116
    SysWaitTemp10US EQU 117
    SysWaitTempMS EQU 114
    SysWaitTempMS_H EQU 115
    SYSSTRINGPARAM1 EQU 453
    ENCINT EQU 32
    K EQU 33
    LCDBYTE EQU 34
    LCDCOLUMN EQU 35
    LCDLINE EQU 36
    LCDREADY EQU 37
    LCDVALUE EQU 38
    LCDVALUETEMP EQU 39
    PRINTLEN EQU 40
    SYSPRINTTEMP EQU 41
    StringPointer EQU 42
    SysIFTemp EQU 43
    SysIntOffCount EQU 44
    SysPRINTDATAHandler EQU 45
    SysPRINTDATAHandler_H EQU 46
    SysTemp1 EQU 47
    SysTemp2 EQU 48

    Joe

     
    • Edward LaBudde

      Edward LaBudde - 2009-08-11

      Joe I see the same thing in my code.  It does not crash though.  Not sure it is a probelm or not.  Ed.

       
    • Hugh Considine

      Hugh Considine - 2009-08-12

      The duplicate EQUs aren't a problem, that's intentional. The reason is that some variables (for example, DELAYTEMP and SYSCALCTEMPX) will never be used at the same time. So, in order to save RAM, they can share a location.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.