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
>     <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
> 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

Reply via email to