Closed israpps closed 3 months ago
Will allow us to reduct binary size of some critical IRX by 16*unused_import_ammount bytes
16*unused_import_ammount
Checking all our drivers src will be as simple as applying the following change on iop/Rules.bin.make and then call make inside iop/
iop/Rules.bin.make
make
iop/
IOP_BIN ?= $(shell basename $(CURDIR)).irx IOP_BIN := $(IOP_BIN:%=$(IOP_BIN_DIR)%) +IMPORT_CHECK_SCRIPT=$(PS2SDKSRC)/iop/check_imports.sh +check-import:: + exec $(IMPORT_CHECK_SCRIPT) all:: $(IOP_BIN) clean:: rm -f -r $(IOP_OBJS_DIR) $(IOP_BIN_DIR) -IMPORT_CHECK_SCRIPT=$(PS2SDKSRC)/iop/check_imports.sh -check-import:: - exec $(IMPORT_CHECK_SCRIPT)
a small example of the output:
it will not handle some edge cases, like udptty createsema (because its using a the createMutex helper function from the intrman header)
but it is still useful
Will allow us to reduct binary size of some critical IRX by
16*unused_import_ammount
bytesChecking all our drivers src will be as simple as applying the following change on
iop/Rules.bin.make
and then callmake
insideiop/
a small example of the output:
it will not handle some edge cases, like udptty createsema (because its using a the createMutex helper function from the intrman header)
but it is still useful