#82 Add #pragma section support

closed
None
5
2005-07-19
2004-07-19
Anonymous
No

Hi,

I am currently writing a serial bootloader, and I found
out that code section assignment is not very flexible
(well, I changed the linker script, to get my code at the
end of the code space, but I need a strap @0 as well,
which I cannot get). I've been looking at the code, and
I've seen that the memmap mechanism is pretty static,
and that it need rework in order to perform dynamic
memory map allocation.
I am willing to discuss this issue with the person in
charge for the memmap concept (and possibly code an
implementation : jhamm[at]insa{dash}lyon(d0t)fr).

Discussion

  • Maarten Brock

    Maarten Brock - 2004-07-20

    Logged In: YES
    user_id=888171

    Hi,

    I'm not in charge of the memmap concept, just one of the
    lesser developers. And I think it would be a nice feature if we
    could control the mapping of segments some more.

    But my first priority lies with decreasing the number of bugs in
    SDCC.

    Greets,
    Maarten

     
  • Maarten Brock

    Maarten Brock - 2005-07-19
    • assigned_to: nobody --> maartenbrock
    • status: open --> closed
     
  • Maarten Brock

    Maarten Brock - 2005-07-19

    Logged In: YES
    user_id=888171

    This is now possible in SDCC 2.5.1 #1061.
    You use the command line option --codeseg MYSEG when
    compiling or pragma codeseg MYSEG inside the source to
    specify the name of the code segment. Then when linking
    you use -Wl-b MYSEG=0x7800 to set the start address of
    this segment.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks