There is some infrastructure to track the performance of SDCC-generated code, in particular to notice performance regressions: 4 benchmarks are compiled with SDCC, executed on hardware, resulting in nice graphs showing how code size and performance evolved over time:
https://sourceforge.net/p/sdcc/code/HEAD/tree/trunk/sdcc-extra/historygraphs/ We've had this for the stm8 and mcs51 backends for a while. Recently, I added support for the first z80-related port, the r3ka. Example graph (Rabbit 3000A Whetstone performance): https://sourceforge.net/p/sdcc/code/HEAD/tree/trunk/sdcc-extra/historygraphs/whetstone-r3ka-score.svg Currently, the r3ka monitoring still suffers from often requiring mnaual intervention (https://github.com/spth/OpenRabbit/issues/22#issuecomment-830763401), but it still works well enough for me to be able to generate the graphs. Since z80 probably has many more users than r3ka (and the instruction set differences are quite substantial resulting in different performance), it would also be good to monitor that one as well. Z80-MBC2 seems like a reasonable choice as a hardware platform, so porting a benchmark to that one would be helpful (https://github.com/SuperFabius/Z80-MBC2/issues/3). Philipp _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user