This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

is there an optimization level

is there an optimization level that will do no, nada, none "code packing" and STILL overlay variables.

it sems that after some release when opt lev 2 became required for variable overlay it is impossible to debug without having to do "strange things" to breakpoint one of 2 similar routines.

Erik

Parents
  • seems to suggest you must be using an OP level higher than 2
    nope:

    if "%MUSDEB%"=="0" goto cdeb
    c:\tools\keil\c51\bin\c51 %1.c LC CD OT (2) NOIP >..\trash\trashbin
    IF errorlevel=2 GOTO tell
    IF not "%SHOWAR%"=="1" goto noerr
    IF not errorlevel=1 GOTO noerr
    :tell
    c:\tools\keil\c51\bin\c51 %1.c LC CD OT (2) NOIP >>cmplst.txt
    goto noerr
    
    
    :cdeb
    c:\tools\keil\c51\bin\c51 %1.c LC CD OT (2) DB OE NOIP >..\trash\trashbin
    IF errorlevel=2 GOTO dtell
    IF not "%SHOWAR%"=="1" goto noerr
    IF not errorlevel=1 GOTO noerr
    :dtell
    c:\tools\keil\c51\bin\c51 %1.c LC CD OT (2) DB OE NOIP >>cmplst.txt
    :noerr

    Consistently refusing to use the IDE and having misplaced their manuals can do that to people. ;->
    1) the IDE can not do what I need !!!!!!! not that I miss it
    2) the only manual I miss is the assembler manual

    Well, at least by my book, none of the modifications affecting code size up to OP(2) can usefully be called "code packing", so I don't quite see why you're so upset about them.
    I really do not care what the book say, the fact is that at OT (2), if two parts have similar "tails" one will jump to the other.

    Erik

Reply
  • seems to suggest you must be using an OP level higher than 2
    nope:

    if "%MUSDEB%"=="0" goto cdeb
    c:\tools\keil\c51\bin\c51 %1.c LC CD OT (2) NOIP >..\trash\trashbin
    IF errorlevel=2 GOTO tell
    IF not "%SHOWAR%"=="1" goto noerr
    IF not errorlevel=1 GOTO noerr
    :tell
    c:\tools\keil\c51\bin\c51 %1.c LC CD OT (2) NOIP >>cmplst.txt
    goto noerr
    
    
    :cdeb
    c:\tools\keil\c51\bin\c51 %1.c LC CD OT (2) DB OE NOIP >..\trash\trashbin
    IF errorlevel=2 GOTO dtell
    IF not "%SHOWAR%"=="1" goto noerr
    IF not errorlevel=1 GOTO noerr
    :dtell
    c:\tools\keil\c51\bin\c51 %1.c LC CD OT (2) DB OE NOIP >>cmplst.txt
    :noerr

    Consistently refusing to use the IDE and having misplaced their manuals can do that to people. ;->
    1) the IDE can not do what I need !!!!!!! not that I miss it
    2) the only manual I miss is the assembler manual

    Well, at least by my book, none of the modifications affecting code size up to OP(2) can usefully be called "code packing", so I don't quite see why you're so upset about them.
    I really do not care what the book say, the fact is that at OT (2), if two parts have similar "tails" one will jump to the other.

    Erik

Children