Menu

program memory offset 8051

Insomniac
2006-03-03
2013-03-12
  • Insomniac

    Insomniac - 2006-03-03

    Hi all.
    I am bluiding a softcore 8051 processor and I would like to implement a bootloader in my device. For this to work (in the way I want to do it anyway) it would have to be possible to tell the compiler to compile the code, or preferably a piece of the code with an offset. (so the program wil not start from 0x0, but -for instance- at 0x100)
    Does anyone know if this is possible with de sdcc compiler? I couldn't find any reference to it in the sdccman pdf.

    Many thanks in advance.

     
    • Frieder Ferlemann

      You seem to have overlooked the option "--code-loc"

       
    • Insomniac

      Insomniac - 2006-03-03

      Frieder,

      I apollogise for my enormous stupidity! The worst thing is that I have been searching for this for days...
      Thanks a lot for your fast response

       
      • Frieder Ferlemann

        You're welcome. Related stuff available in the more recent SDCC versions are the #pragmas codeseg <name> and constseg <name> and their corresponding command line options.

         

Log in to post a comment.