Pārlūkot izejas kodu

[build] Provide mechanism for listing constituent object sizes

You can now type e.g.

  make bin/rtl8139.rom.sizes

in order to see the (uncompressed) sizes of all of the object files
linked in to bin/rtl8139.rom.  This should make it easier to identify
relevant code bloat.
tags/v0.9.8
Michael Brown 15 gadus atpakaļ
vecāks
revīzija
ead44dba89
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2
    0
      src/Makefile.housekeeping

+ 2
- 0
src/Makefile.housekeeping Parādīt failu

@@ -657,6 +657,8 @@ define objs_list
657 657
 endef
658 658
 $(BIN)/%.objs : $(BIN)/%.tmp
659 659
 	$(Q)$(ECHO) $(call objs_list,$<)
660
+$(BIN)/%.sizes : $(BIN)/%.tmp
661
+	$(Q)$(SIZE) -t $(foreach OBJ,$(call objs_list,$<),$(BIN)/$(OBJ).o)
660 662
 
661 663
 # Get dependency list for the specified target
662 664
 #

Notiek ielāde…
Atcelt
Saglabāt