CFLAGS: Replace instances of -Os with -O2#3871
CFLAGS: Replace instances of -Os with -O2#3871NTULINUX wants to merge 1 commit intoLinuxCNC:masterfrom
Conversation
-Os or -O2 should have no effect on doubles. Signed-off-by: Alec Ari <neotheuser@ymail.com>
|
Good catch. I thought I caught them all some time ago, but apparently, not so... |
|
Question, what are your thoughts on adding Maybe tie the unwind tables flags to a configure option to disable a debug build? The *section* flags though can be default with no harmful consequences I think. |
|
I don't think that the size of the binaries should be any concern. They are peanuts when stripped and running. The bin, lib and rtlib directories are combined less than 25MByte stripped (less than 80MByte unstripped). This is not a multi-GigiByte executable project. The GUI stuff is probably the biggest memory hog while running, which is for parts out of our control. Anything else is mostly transient usage. Even running RT is measured in MegaBytes and not GigaBytes. The question is how much "dead code" you can get rid of in the link phase using |
|
There's so many spots where the CFLAGS and LDFLAGS go, should I sub them all or any ideas how to force them tree-wide? |
|
Well, there is the real problem... You managed to find the forest and are asking for the location of the trees. I'd like that answer too ;-) There are different places for different code. The RT stuff is generally separate from the userland stuff. You should be able to hook into this for the userland code from configure (see example in |
I'M ON IT! :D edit: Definitely not worth the trouble, hardly any change in size. |
-Os or -O2 should have no effect on doubles.