Author Topic: [CPCTELERA] Using peep-file (peepholes)  (Read 715 times)

0 Members and 1 Guest are viewing this topic.

Offline cperezgrin

  • CPC464
  • **
  • Posts: 30
  • Country: es
  • Liked: 15
  • Likes Given: 5
[CPCTELERA] Using peep-file (peepholes)
« on: 11: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.

Offline ronaldo

  • Dev
  • 6128 Plus
  • *****
  • Posts: 648
  • Country: es
    • Profesor Retroman
  • Liked: 941
  • Likes Given: 827
Re: [CPCTELERA] Using peep-file (peepholes)
« Reply #1 on: 21: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.
« Last Edit: 22:00, 19 October 18 by ronaldo »

Offline cperezgrin

  • CPC464
  • **
  • Posts: 30
  • Country: es
  • Liked: 15
  • Likes Given: 5
Re: [CPCTELERA] Using peep-file (peepholes)
« Reply #2 on: 01:11, 20 October 18 »
0x200 bytes saved with the peephole file, a great and unexpected gift when my highest address was about A6xx ;D Thanks
« Last Edit: 09:38, 20 October 18 by cperezgrin »