Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 21, 2024, 10:07:38 10:07


Login with username, password and session length


Pages: [1]
Print
Author Topic: MPLABX - Compiler Advisor  (Read 4122 times)
0 Members and 1 Guest are viewing this topic.
Catcatcat
Senior Member
****
Offline Offline

Posts: 432

Thank You
-Given: 284
-Receive: 1644



WWW
« on: July 10, 2023, 11:19:36 11:19 »

MPLABX has this function "Compiler Advisor" its purpose is to show how efficiently the program code will be created by the compiler, in different modes of its optimization.
I decided to analyze the operation of this function, well, such an analysis is done when there is really nothing to do, and now I really have nothing to do, I am looking for an interesting new job. Cheesy
I changed the optimization mode, performed compilation and for the current mode I ran "Compiler advisor".
Here's what I got.
By the size of the data in memory, it lies stably in all modes. But with the size of the program, somewhere it matches, somewhere it doesn’t, but it always writes that if you buy the PRO version, it will be even cooler.
Has anyone else tested this way? I want to know this – "Compiler Advisor" specifically lies or does it show correctly?

no optimization



O3 optimization



O2 optimization



O1 optimization



Os optimization



In principle, all the results suit me, but what if it could be better!? Shocked




Logged
Manuel
Senior Member
****
Offline Offline

Posts: 329

Thank You
-Given: 678
-Receive: 192


« Reply #1 on: July 10, 2023, 11:47:37 11:47 »

The PRO Comparison provide me ERROR so it's excluded from the graph automatically ...

X!
Logged

-> An Apple a Day does not Let U become a Macintosh!
Catcatcat
Senior Member
****
Offline Offline

Posts: 432

Thank You
-Given: 284
-Receive: 1644



WWW
« Reply #2 on: July 10, 2023, 01:40:00 13:40 »

Fooling us, Microchip, fooling us. Grin Cheesy
Logged
alien
Junior Member
**
Offline Offline

Posts: 56

Thank You
-Given: 30
-Receive: 7


« Reply #3 on: July 10, 2023, 05:37:21 17:37 »

Suggestion/off topic : If you are really after tight/optimized  code then please try CC5x, no compiler can beat the CC5x optimizations .
Logged
Catcatcat
Senior Member
****
Offline Offline

Posts: 432

Thank You
-Given: 284
-Receive: 1644



WWW
« Reply #4 on: July 11, 2023, 06:57:39 06:57 »

Everything suits me in microchip compilers, I was just interested in this function, the meaning of which boiled down to one thing - "pay for the license." But I live in such a country that I have no time for a license, and especially now. Cheesy Grin
Logged
patchjack
Junior Member
**
Offline Offline

Posts: 51

Thank You
-Given: 11
-Receive: 49


« Reply #5 on: July 11, 2023, 10:11:47 10:11 »

I also found that its statistics are inaccurate, which is completely consistent with the hex file.
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC