Jump to content
Sign in to follow this  
vergy

patch scripts "lost"

Recommended Posts

Hi!

Wy some times the compiler don't use the scripts located in its directory under the "scripts" dir.?

 

It seems that compiler can't find those files.

 

 

Thank you in advance, bye

 

vergy

Share this post


Link to post
Share on other sites
Guest Pavel

I'm not aware of any such problem. Can you provide more information how this problem can be reproduced?

 

Regards,

Pavel

Share this post


Link to post
Share on other sites

Hello,

on my system with c2c v4.5.4e / v4.6e the scripts don't work at all.

I am running PicAnt under windows 2000 SR2 with MPLAB 6.10.

As described in the text file in the Scripts folder I renamed the

piccont4.pa1 to piccont4.pat and expected to see the context saving and restoring code in the asm file but there is still the

following code:

ORG 4

;;;;;;;;

;;;;;;;;void interrupt( void )

_interrupt

_interrupt__code

clrf PCLATH

 

It doesn't matter if the checkbox for enabling context saving in the options is enabled or not.

After that I tried to set the debug flag in the script files.

I now expected to see the script name in the compiler output window , but there was only a message about the optimazation.

 

Does the compiler search for scripts automaticaly or do I have to enable this somewhere ?

 

Can anyone help ?

 

Thanks in advance

uwe

Share this post


Link to post
Share on other sites

I also have the same problem with scripts, when I tried to solve the const string problem.

The only thing I can find that I have done is that there is more than one version of C2C installed on the computer and that they are not installed in default directory. (eg installed in C2C450 and C2C454)

The same script worked ok in version 4.18, but not in 4.50 or 4.54.

 

But I have no solution for it except trying to compile in 4.18.

Share this post


Link to post
Share on other sites
Guest Pavel

I just tried again with 4.6 and on my PC scripts work without any problems. The only difference between our setups is the windows os version and maybe the directory where you installed the compiler. I'll try 4.6 under Win 2000 this Monday. If you can specify your c2c installation directory I will verify  the compiler installed there too.

 

To make sure scripts are or aren't found please enable script debugging (by changing "Debug: off" to "Debug: on" inside the scripts) and try to compile again. If both scrips and assembler pattern are found the compiler output will contain the script name and the number of found patterns.

 

Compiling...

C2C-plus 4.6e C-compiler  Copyright(C) 1998-99,2000-2003 by Pavel Baranov
http://www.picant.com/c2c/c.html
[email=support@picant.com]support@picant.com[/email]
(Extended version)

Licensed to: Pavel Baranov


INTER.C
Warning: Can't map context saving variables into mapped ram area
Script 'Context save'
(1 matche(s) found)
Script 'Context restore'
(1 matche(s) found)
Script 'Context save/restore (helper #1)'
(1 matche(s) found)
Script 'Context save/restore (helper #2)'
(1 matche(s) found)
Script 'Context save/restore (helper #3)'
(1 matche(s) found)
Optimized 8 instruction

 

Finished.

Done

 

 

Regards,

Pavel

Share this post


Link to post
Share on other sites

Hello Pavel,

 

as you told it was working on w98 I tried, too.

On w98SE it works but not on w2k or XP PRO.

 

I tried installing my PicAnt into c:\programme\c2c

(German windws) and to c:\Program Files\c2c  always as offered from the installation and tried out the other after uninstalling .

 

If there is an old version the links in the desktop and start menu

are not updated.

 

uwe

Share this post


Link to post
Share on other sites
Guest Pavel

I was able to reproduce the problem under Win2000.

Will investigate it and post a fix asap.

 

Regards,

Pavel

Share this post


Link to post
Share on other sites
Guest Pavel

The compiler updates 4.6.1 (C2C++ 1.6.1) that fix both the 'lost' .PAT scripts and the limit on the number of input files have been posted on the compiler http://www.picant.com/c2c/download.html page.

Please download and unzip the update into the same directory where you installed the C2C-plus (or C2C++) compiler.

 

Regards,

Pavel

Share this post


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.

Guest
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.

Loading...
Sign in to follow this  

×
×
  • Create New...