About C / Z80 optimizations (SDCC)

Page 19/19
12 | 13 | 14 | 15 | 16 | 17 | 18 |


Paladin (864)

WORP3's picture

28-01-2022, 14:27

A bit off-topic but what if you would compare SDCC with z88dk, would there be a obvious winner?

By aoineko

Paladin (895)

aoineko's picture

28-01-2022, 15:18

Here some numbers to figure out: https://github.com/z88dk/z88dk/wiki/Benchmarks

Overall, z88dk seems to do better in many situations but this is not surprising for a compiler exclusively optimized for the z80.
But the chosen benchmarks do not necessarily reflect other use cases, like games for example.
It would be interesting to have a comparison on less specific programs that do not use the standard libraries.

I plan to make my C game library MSXgl compatible with z88dk one day, but it's far from the top of my todo list.

By santiontanon

Paragon (1770)

santiontanon's picture

28-01-2022, 15:35

Also, if you see common things in SDCC/z88dk that could be easily optimized, please report in this thread: https://msx.org/forum/msx-talk/development/assembler-optimiz...

It's not too hard to insert the MDL optimizer into the SDCC compilation chain to gain a few cycles here and there.


Enlighted (6932)

ARTRAG's picture

28-01-2022, 15:59

I have HiTech C V8, its read me says:


HI-TECH V8 C Compiler
Bug fixes made since v7.80

DATE: 26th September 2001

Below is a list of some of the reported bugs that have been fixed since
version 7.80. Not all code generation bugs are listed since they do not
always directly correspond to a particular piece of code being compiled.


- Fixed incorrect memory summary information. (7.80PL1)


- Fixed optimization with calls using status register. (7.80PL2)

It would be interesting to run the benchmarks with it. It was in general much better of SDCC until a couple of years ago (using all registers for passing parameters and allowing banked roms in natural way), but then I've lost the latest developments of SDCC and with V4.1.12 I think it could have filled the gap.


Paladin (864)

WORP3's picture

20-03-2022, 14:18

Is any of you using the makefile in combination with the z88dk compiler?
If so, which makefile program are you using, there doesn't seem to be one includeded. Probably it's using the default linux gcc version but that's not included with windows Sad

By ToriHino

Paladin (826)

ToriHino's picture

20-03-2022, 18:18

Although not with z88dk, I usually use this one.

Page 19/19
12 | 13 | 14 | 15 | 16 | 17 | 18 |