Thanks, that helps me.

Am Freitag, den 12.04.2019, 20:27 +0100 schrieb Alan Cox:
> On Fri, 12 Apr 2019 20:52:31 +0200
> Klaus Brandl <kl...@kbrnet.de> wrote:
> 
> > Hi,
> > 
> > is there a way to get the _DATA section to the very end, and wipe
> > it
> > out on the z80 port?
> 
> The order things appear is determined by what is in crt0.s. You can
> thus
> keep it at the end and rather than saving all the zeros to disk wipe
> them
> at startup. You can't get rid of it though - it's real used space.
> 
> What you can get rid of is INITIALIZER by copying it into INITIALIZED
> with a helper tool instead of doing that at runtime. I do that for
> Fuzix.
> The other thing I do for Fuzix is I put a lot of the early start up
> code
> into a section I call DISCARD and then re-use that memory for other
> stuff
> (working buffers etc) once I have the setup completed.
> 
> The Fuzix tool is at
> 
> https://github.com/EtchedPixels/FUZIX/blob/master/Library/tools/binma
> n.c
> 
> and processes the binary and map file from SDCC. It builds a Fuzix
> header
> as well which you clearly don't need but does show the basic
> manipulations needed to bash an SDCC image into a more useful shape
> when
> running from RAM.
> 
> Alan


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

Reply via email to