[Tremor] Reducing code size

Santhosh N M santhosh at vinjey.com
Mon Sep 19 22:53:37 PDT 2005


Hi Daniel,

      You can overlay the code, to reduce the code size. Separate the
functions to diffetent sections (Say you have overlayed sections A and B
and ). All the functions in the sections should be independent of the other.
i.e. None of the functions in section A should not invoke the functions
sections B and vice versa. In case there are some common functions used in
both the sections A and B, you can have it in a seperate section (Say
.common) which cannot be overlayed. Some overlay manager has to implemented
to bring in the sections into the code memory when required. Linker script
file should be used to overlay sections and you can verify in the map file
that, the link memory location of both sections A and B will be same.

Regards,

Santhosh N M

----- Original Message -----
From: <s22088840 at tuks.co.za>
To: <tremor at xiph.org>
Sent: Monday, September 19, 2005 4:11 PM
Subject: [Tremor] Reducing code size


Hello everyone

I'm implementing a very simple audio player on DSP as a University project.
I have quite a fast DSP evaluation board to work with but I am unable to
achieve real time decoding.  The main problem is that I only have 64KB of
internal RAM to work with and I thus have to move some of the code to the
slow external SDRAM.

I basically would like to know where I could save some space, is there code
that I could remove?  I only need a very simple decoder.  I am decoding
files as Ogg streams from a memory buffer and am not planning on
implementing
seeking.  Also, backwards compatability is unnecessary, as I will encode
the audio files with the latest reference encoder.

Thank you!

Daniel vN
_______________________________________________
Tremor mailing list
Tremor at xiph.org
http://lists.xiph.org/mailman/listinfo/tremor







More information about the Tremor mailing list