News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu
avatar_cperezgrin

[CPCTELERA] Using peep-file (peepholes)

Started by cperezgrin, 09:28, 16 October 18

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

cperezgrin

Hi again, I want to use the peepfile included in cpctelera (v1.4.2). It's fine as it saves around 0x0200 Bytes, but I get the following message while compiling:
could not find named function "inSequence" in peephole function table
I have checked that function is used in the .def file but not defined, Do I need to add something else to use that function?

Thanks for all your help.

ronaldo

#1
Those are speculative peepholes. They may fail from time to time and some can even generate broken code on some corner cases.

You may edit peephole file and remove the ones that are giving you headaches to leave just those working and saving you some bytes and cycles. Peephole file is quite easy to read and follow as you have already seen by yourself.

With respect to inSequence, it seems to be something incomplete in that particular SDCC version. That will probably be fixed when updating to new SDCC versions with next CPCtelera release.

cperezgrin

#2
0x200 bytes saved with the peephole file, a great and unexpected gift when my highest address was about A6xx ;D Thanks

Powered by SMFPacks Menu Editor Mod