The default calling convention for these ports should be changed soon¹ (I had done research on the calling convention, and we can do much better than the old 4.1.0 one, which is why the default convention was already changed for stm8, z80, z80n, gbz80, z180).
Basically, we have two reasonable choices here: 1) Use the calling convention that apparently is best for these ports (we currently have that in trunk via --sdcccall 1). 2) Use the same calling convention as z80. This is less efficient than 1), but still far better than the current one. I guess in the end it comes down to efficiency vs. maintenance effort: With 1), we get better code, but put a bigger burden on users that maintain assembler-written libraries targeting both one of r2k, r2ka, r3ka, tlcs90, ez80_z80 and one of z80, z80n, z180. ¹ We want to do this very soon, so we have enough time before 4.2.0 to discover any remaining issues. Otherwise we might have to delay the calling convention change until post-4.2.0. Philipp _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user