I've loocked at this file (as I mentioned earlier). Some moments push me to ask questions. There are parameters like
 
notUsed('a'), 
notSame(%2 'push' 'pop'), 
notSame(%1 'xl' 'xh' 'yl' 'yh'),
immdInRange(0 255 '+' %1 %2 %9),
labelIsUncondJump(),
labelRefCountChange
and many others. i can look at examples and make my own like a monkey, but it's not best practice. 
Tried too lokk at sources of sdcc, but my sw skill isn't enough to understand code.
And second. Some params of peep riules are numbered in series like %1, %2, %3 etc,
and some like %1, %5, %9. Why is it so?
 
 
 
 
16.12.2016, 12:10, "Maarten Brock" <sourceforge.br...@dse.nl>:
 Hello. Where I can read about writing peephole rules for sdcc? I
 looked at sources and found one file, but its syntax is unclear for me.
 Target platform is stm8


Start by looking at the peephole definition file in the sources that is
automatically used.
https://sourceforge.net/p/sdcc/code/HEAD/tree/trunk/sdcc/src/stm8/peeph.def

Maarten

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to