mirror of
https://github.com/xcat2/xNBA.git
synced 2025-01-05 19:15:05 +00:00
[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.
This commit is contained in:
parent
3d6b8a67f2
commit
ead44dba89
@ -657,6 +657,8 @@ define objs_list
|
||||
endef
|
||||
$(BIN)/%.objs : $(BIN)/%.tmp
|
||||
$(Q)$(ECHO) $(call objs_list,$<)
|
||||
$(BIN)/%.sizes : $(BIN)/%.tmp
|
||||
$(Q)$(SIZE) -t $(foreach OBJ,$(call objs_list,$<),$(BIN)/$(OBJ).o)
|
||||
|
||||
# Get dependency list for the specified target
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user