colinw wrote:Also, seeing this doesn't appear to affect anything but one command running in a shell, I would be reluctant to jump to any sort of conclusions, until we have a better idea of what inside that command actually triggers the effect.
Maybe you could get that better idea by obtaining the make sources from ssolie.
I have a simple test makefile that doesn't use any SDK commands (other than make itself) which demonstrates the problem quite well:
- Code: Select all
#Test makefile
all: dodelete
.PHONY : dodelete
dodelete:
@echo testing >ram:test.xyz
@delete ram:test.#?
@echo testing >ram:test.xyz
@delete ram:test.#?
@echo testing >ram:test.xyz
@delete ram:test.#?
@echo testing >ram:test.xyz
@delete ram:test.#?
@echo testing >ram:test.xyz
@delete ram:test.#?
@echo testing >ram:test.xyz
@delete ram:test.#?
@echo testing >ram:test.xyz
@delete ram:test.#?
@echo testing >ram:test.xyz
@delete ram:test.#?
@echo testing >ram:test.xyz
@delete ram:test.#?
@echo testing >ram:test.xyz
@delete ram:test.#?
When I run the above makefile with the make command after booting from an SFS partition it takes 10.2088 seconds to complete (using the timer command from os4depot - e.g. timer make).
When I enter "path Workbench:C add head" (Workbench is an FFS partition) after booting from an SFS partition but before running the above makefile with the make command; the make command takes 0.1670 seconds to complete.
Testing with the above makefile seems to indicate that the problem with make involves executing commands and not the gcc compiler commands themselves. The time difference is obviously a lot more than a few microseconds per command.