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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
You seem to have overlooked the option "--code-loc"
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
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.