Am 31.07.21 um 15:10 schrieb Ben Ferguson: >>If you want to be lazy about your naked functions, you could also just > declare them as __sdccoldcall. > > I don't see this defined in the manual. What does it do?
So far it is only in the manual in the branch that implementes the new convention. When the convention is changed, it will make individual functions use the old calling convention. > > Why are you saying it's lazy? I'm writing asm that matches the calling > convention that has been standard since I've started using sdcc. This is > lazy why? You can rewrite the asm functions at the time the calling convention changes. Or you can use the "lazy" __sdccoldcall way to just mark the existing asm functions to use the old convention. You could then update individual functions to the new convention where it offers a speed advantage that makes it worth it. Such as use of __sdccoldcall would be "lazy" in a similar sense to other concepts in programming called "lazy", such as "lazy evaluation", where computations are done only when the results are actually needed. Philipp _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user