|
|
View previous topic :: View next topic |
Author |
Message |
koko Guest
|
compatibility problem? |
Posted: Fri Nov 24, 2006 6:42 am |
|
|
i have two ccs compillers, v3.124 and v3.249. the problem is: my code compils fine with old version, but not with the new one. the same code, with no changes! target device is 16f877a. can somebody help me? |
|
|
Ttelmah Guest
|
|
Posted: Fri Nov 24, 2006 6:55 am |
|
|
Realistically, archive the old compiler with the source, and use this....
The 'answer' gets complex, and will depend on how your code is written. There are some 'little' changes, which have caused this type of behaviour. The way that bit fields are handled can affect some complex logic tests. The improved optimisation, can cause problems, in particular if you are mixing assembler with your C. Try running with the optimisation turned down. There have been some slight 'tweaks' to some of the library routines (make sure that your code is pulling the libraries that correspond to the latter compiler, when trying to compile with this).
Best Wishes |
|
|
koko Guest
|
|
Posted: Fri Nov 24, 2006 8:15 am |
|
|
thanks, Ttelmah.
i made some changes in my code, but there is new problem, even more strange. the code now compils with both compilers, but work only if it was compiled with old version! |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|