I ran into issue similar to the one described in #8, unsigned division is very slow because it's not using DIV instruction. For me the easiest solution was to implement two new instructions: UDIV and UMOD. Here's a patch that enables them in zpugcc. By default they are disabled for compatibility. They can be enabled with -mumod-mudiv switches.
I ran into issue similar to the one described in #8, unsigned division is very slow because it's not using DIV instruction. For me the easiest solution was to implement two new instructions:
UDIV
andUMOD
. Here's a patch that enables them in zpugcc. By default they are disabled for compatibility. They can be enabled with-mumod
-mudiv
switches.