On Wed, 1 Apr 2020 18:01:37 +1100
Brad Robinson <brobin...@toptensoftware.com> wrote:

> Hey All,
> 
> I've got a Z80 project where the generated image will be loaded
> directly into RAM and therefore the initialization data doesn't need
> to be copied from the image to a specified RAM area.
> 
> How can I configure SDCC to generate an image like this?  A working
> example would be great.

I've not found a way to do it, which is a bit of a nuisance as SDCC also
generates a load of garbage initialization code it doesn't need to for
many static objects inside functions.

Currently I keep the statics outside functions to avoid the pointless
code, put the initializer segment somewhere out of the way, and wrote a
tool that simply copies the initializers into the right place in my
binary.

Alan


_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to