Jump to content

Ignoring .pat Scripts In V6.35

Recommended Posts

Bug description:

I'm trying to create as script to optimise a CALL followed by immediate RETURN with a GOTO instead. Eg:


CALL i2c_delay_0000



should become


GOTO i2c_delay_0000


Steps to reproduce:


Create a file named 'picgoto.pat' and placed it under C:\Program Files\Sourceboost\Scripts. Below are the file contents:


// Author: R.Yeardley
Name: "RYgoto"
Debug: on

00.    call %v0%
01.    return

change 00 "\tgoto %v0%"
delete 01


As you can see Debug is turned on but a) it doesn't optimise the generated ASM file and B) there's no sign of it showing up in the output window.


Expected behaviour:

'RYgoto' should show up in the compiler output and the resultant assembly should be modified.


Is the problem 100% reproduceable:



IDE version: 6.35

Compiler: BoostC

Compiler version: 6.35

Target device: PIC16F628

OS: Windows 2000 SP4

Edited by unclerichy
Link to post
Share on other sites



This is not a bug.

The patch scripts only apply to the C2C-plus (older generation) compiler, not the BoostC compiler.




Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...