CPCWiki forum

General Category => Programming => Topic started by: cperezgrin on 09:28, 16 October 18

Title: [CPCTELERA] Using peep-file (peepholes)
Post by: cperezgrin on 09:28, 16 October 18
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.
Title: Re: [CPCTELERA] Using peep-file (peepholes)
Post by: ronaldo on 19:58, 19 October 18
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.
Title: Re: [CPCTELERA] Using peep-file (peepholes)
Post by: cperezgrin on 23:11, 19 October 18
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