Menu

#178 mcs51: keep interrupt table at 0 when moving code location

open
nobody
5
2010-05-21
2006-10-26
Anonymous
No

I'm trying to move the code location using: "--code-loc
0x1D00" but this also moves the interrupt vector table
which leads to interrupts not working. I thought I
could force the interrupt vector table back to 0x0000
using the "--ivt-loc 0x0000" command line switch but it
seems that that switch is not supported for mcs51.

Discussion

  • Frieder Ferlemann

    Logged In: YES
    user_id=589052

    you can specify the location of the interrupt vector
    table with a linker command:

    sdcc -Wl-bHOME=0x2000 -Wl-bCSEG=0x8000 interrupt.c

    would let your code start at 0x8000 and the IVT start
    at 0x2000.

    Note: the option "-Wl-bHOME=0x2000" is not compatible
    with the option "--code-loc".
    (I'm not sure whether this should be considered a bug)

     
  • Philipp Klaus Krause

    • labels: --> mcs51(8051) target
     

Log in to post a comment.

MongoDB Logo MongoDB