Bug in Optimizer at CompareBlock?

  • 1
  • 2
  • 3
  • Page 2 of 3
Merlin
Administrator
Avatar
Gender:
Age: 25
Posts: 1416
Registered: 03 / 2005
Subject:

Re: Bug in Optimizer at CompareBlock?

 · 
Posted: 24.10.2024 - 10:56  ·  #9
Thank you Sandor. Your problem with PED sounds like an issue with your system settings in PED. The system setting in PED should be identical to those in PEDnew. If you cannot find the issue by comparing the two, please post images of both and I will see if I can see the problem.
wsandor
Benutzer
Avatar
Gender: n/a
Age: 53
Posts: 21
Registered: 07 / 2012
Subject:

Re: Bug in Optimizer at CompareBlock?

 · 
Posted: 24.10.2024 - 11:36  ·  #10
Dear Merlin,

Thanks, the programmer issue seems to be solved by deleting the invalid entries from the Projects section of ISPICP.ini
(I think the update put them there as they were not my projects)

Best regards,

Sándor
Merlin
Administrator
Avatar
Gender:
Age: 25
Posts: 1416
Registered: 03 / 2005
Subject:

Re: Bug in Optimizer at CompareBlock?

 · 
Posted: 24.10.2024 - 15:29  ·  #11
Pleased to hear it Sandor. I have also now checked your sources and it does clearly display the issue, thank you. I will fix it as soon as I can and post the update here.
Merlin
Administrator
Avatar
Gender:
Age: 25
Posts: 1416
Registered: 03 / 2005
Subject:

Re: Bug in Optimizer at CompareBlock?

 · 
Posted: 25.10.2024 - 16:17  ·  #12
Hello Sandor.

Bad news, I am afraid.

I thought I had seen something in the asm, but I was wrong.

Having gone through it in detail I cannot see an error.

By my analysis everything looks absolutely correct. The LED should flash on 1 second intervals as far as I can tell.

I am afraid I will be on holiday for a week now, but if it OK I will contact you when I get back to see how we can narrow things down, although I have checked all the code not just SetDisplayData_BaseAndShot.

Sorry I cannot see the issue.
wsandor
Benutzer
Avatar
Gender: n/a
Age: 53
Posts: 21
Registered: 07 / 2012
Subject:

Re: Bug in Optimizer at CompareBlock?

 · 
Posted: 30.10.2024 - 07:55  ·  #13
Dear Merlin,

Have a nice holiday!

I've attached a picture about a WinMerge of the two asm files. The left side is without the optimiser. Maybe I miss something, but as I see, the optimized version sets only the _DispData_Old's and _DispDataShclk_old's addresses and doesn't set_DispData's and _DispDataShclk's before calling SYSTEM.RamCompRam. What is your opinion?

Sándor
Attachments
Bug in Optimizer at CompareBlock?
Filename: Diff.jpg
Filesize: 329.86 KB
Title:
Download counter: 110
Merlin
Administrator
Avatar
Gender:
Age: 25
Posts: 1416
Registered: 03 / 2005
Subject:

Re: Bug in Optimizer at CompareBlock?

 · 
Posted: 04.11.2024 - 20:10  ·  #14
Thanks Sandor.

Yes it looks like you are right. I must have been looking forward to my holiday too much! :-)

I will check it out.

Merlin.
Merlin
Administrator
Avatar
Gender:
Age: 25
Posts: 1416
Registered: 03 / 2005
Subject:

Re: Bug in Optimizer at CompareBlock?

 · 
Posted: 15.11.2024 - 13:16  ·  #15
Hello Sandor.

Sorry for the delay. I have been having problems with my computer.

Please find attached a new optimiser that I believe should solve your problem.
Attachments
Filename: MerlinOptimiser.zip
Filesize: 422.13 KB
Title:
Download counter: 22
wsandor
Benutzer
Avatar
Gender: n/a
Age: 53
Posts: 21
Registered: 07 / 2012
Subject:

Re: Bug in Optimizer at CompareBlock?

 · 
Posted: 20.11.2024 - 08:49  ·  #16
Dear Merlin,

Thanks for the new optimiser, it solves the problem!

In the meantime I run into an other problem. It is not related to the optimiser but the dsc files.
One of my old projects uses the ATTiny841 (441) chip. I tried to compile it with the new compiler and get many errors. The problem is that the dsc files changed from that they were in ver 5.x. The date of the "old' dscs are 2016. ‎august ‎10, while the "New" ones are 2021. ‎december ‎2. I made a little table comparing the old and new DSCs and the datasheet. From it you can see that most of the time the old dsc is better than the new. (except at the numbering of the UARTs which is different in most of processors I used - 1-2 vs. 0-1) Why it was modified? Is it safe to replace them with the old ones? (the program compiles with then without errors)

Sandor Wortmann
Attachments
Bug in Optimizer at CompareBlock?
Filename: tiny841_dsc_diffs.jpg
Filesize: 181.03 KB
Title:
Download counter: 48
  • 1
  • 2
  • 3
  • Page 2 of 3
Selected quotes for multi-quoting:   0

Registered users in this topic

Currently no registered users in this section

The statistic shows who was online during the last 5 minutes. Updated every 90 seconds.
MySQL Queries: 18 · Cache Hits: 15   140   155 · Page-Gen-Time: 0.030018s · Memory Usage: 2 MB · GZIP: on · Viewport: SMXL-HiDPI