Hi,
The reduced I said is program size. Also, I removed malloc and struct to make
the program
as simple as possible for embedded systems, and it also reduce the execute time
by not
indexing pointer.
I used gcc on CodeLite, I don't know why it doesn't remove unreferenced much.
Probably
it is in debug mode.
Sumek.
________________________________
From: Danilo Beuche <danilo.beu...@gmx.net>
Sent: Monday, June 11, 2018 12:06:54 PM
To: freetel-codec2@lists.sourceforge.net
Subject: Re: [Freetel-codec2] noob in voice coding asking for help about Codec2
decoder.
Hi,
btw, using the gcc's -flto during compiling and linking does a great job of
removing unused data and functions. Basically the gcc breaks up every file into
individual linkable elements (each global variable and functions becomes an
independent linkage element) and anything not referenced anywhere simply
disappears from the final binary. Of course there is a lot more going on with
-flto (LTO stands for link time optimization) but one of the side effects of
using LTO is this removal of unreferenced elements from binary code.
Other compilers have similar "tricks".
Regards,
Danilo
On 11.06.2018 03:19, Bruce Perens wrote:
Hi Sumek,
I am curious about your memory saving strategy. Specifically, why using the
stack vs. malloc() would result in a significant memory savings, and how
removing structs would result in a significant memory savings.
Perhaps you mean you are removing unused ones?
Or is there something about the Windows compiler I don't understand?
Thanks
Bruce
On Sun, Jun 10, 2018 at 1:40 PM, David Rowe
<da...@rowetel.com<mailto:da...@rowetel.com>> wrote:
Hi Sumek,
Oh I have one question, do you know if we can reduce the size of codebook
especially lsp_cbjvm
Many of those tables aren't used, so just link in the ones you need to support
the Codec 2 modes you would like to use.
Cheers,
David
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Freetel-codec2 mailing list
Freetel-codec2@lists.sourceforge.net<mailto:Freetel-codec2@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/freetel-codec2
--
Bruce Perens K6BP - CEO, Legal Engineering
Standards committee chair, license review committee member, co-founder, Open
Source Initiative
President, Open Research Institute; Board Member, Fashion Freedom Initiative.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Freetel-codec2 mailing list
Freetel-codec2@lists.sourceforge.net<mailto:Freetel-codec2@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/freetel-codec2
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Freetel-codec2 mailing list
Freetel-codec2@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freetel-codec2