Tiny Core Extensions > TCE Corepure64

Compiler Optimization Question

(1/1)

maluvia:
I noticed that it is recommended to use the following prior to make


--- Code: (bash) ---find . -name Makefile -type f -exec sed -i 's/-O2/ /g' {} \;
--- End code ---

What exactly does this do?
And is the following post make command still recommended?


--- Code: (bash) ---find . | xargs file | grep "executable" | grep ELF | grep "not stripped" | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || find . | xargs file | grep "shared object" | grep ELF | grep "not stripped" | cut -f 1 -d : | xargs strip -g 2> /dev/null
--- End code ---

Juanito:

--- Quote from: maluvia on November 29, 2014, 02:52:36 PM ---What exactly does this do?

--- End quote ---
The recommended tinycore optimisation is "-Os", but as some Makefiles hardcode "-O2" it needs to be removed.


--- Quote ---And is the following post make command still recommended?

--- End quote ---
That command finds files to be stripped in order to reduce their size as per tinycore recommendations.

Navigation

[0] Message Index

Go to full version