Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
April 15, 2024, 07:39:17 07:39


Login with username, password and session length


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

Posts: 416

Thank You
-Given: 275
-Receive: 1527



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: 316

Thank You
-Given: 646
-Receive: 182


« 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: 416

Thank You
-Given: 275
-Receive: 1527



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: 55

Thank You
-Given: 30
-Receive: 6


« 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: 416

Thank You
-Given: 275
-Receive: 1527



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: 39

Thank You
-Given: 6
-Receive: 45


« 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