Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
April 25, 2024, 09:17:00 21:17


Login with username, password and session length


Pages: 1 2 3 4 5 6 7 [8] 9 10 11 12
Print
Author Topic: XC8 Compilers - Discussion  (Read 226887 times)
0 Members and 1 Guest are viewing this topic.
mars01
V.I.P
Hero Member
*****
Offline Offline

Posts: 536

Thank You
-Given: 693
-Receive: 1763



« Reply #175 on: June 23, 2018, 02:34:28 14:34 »

Patch may be working but with the new GCC "look', MPLABX can't see the xc.h therefore I reverted to XC8 1.45 which works fine.
Logged
Catcatcat
Senior Member
****
Offline Offline

Posts: 417

Thank You
-Given: 276
-Receive: 1536



WWW
« Reply #176 on: June 23, 2018, 06:57:41 18:57 »

comparison of compilers v1.45 (pro) and 2.00 (s)




 Wink




Posted on: June 23, 2018, 11:52:02 11:52 - Automerged

Patch may be working but with the new GCC "look', MPLABX can't see the xc.h therefore I reverted to XC8 1.45 which works fine.
In the beginning, there was a similar problem, re-install the compiler (before removing everything and the installation directory) and as described apply the medicine.


Posted on: June 23, 2018, 11:58:54 11:58 - Automerged


v2.00 C standart C 99

Logged
mars01
V.I.P
Hero Member
*****
Offline Offline

Posts: 536

Thank You
-Given: 693
-Receive: 1763



« Reply #177 on: June 23, 2018, 07:10:39 19:10 »

I guess we should stay away from v2.0 until they get the hang of it. The developers may have attempted too much for this release.
Logged
metal
Global Moderator
Hero Member
*****
Offline Offline

Posts: 2420

Thank You
-Given: 862
-Receive: 678


Top Topic Starter


« Reply #178 on: June 23, 2018, 10:49:47 22:49 »

what is the "new GCC "look'"? Did they abandon HI-TECH compilers?
Logged
mars01
V.I.P
Hero Member
*****
Offline Offline

Posts: 536

Thank You
-Given: 693
-Receive: 1763



« Reply #179 on: June 23, 2018, 11:52:50 23:52 »

what is the "new GCC "look'"? Did they abandon HI-TECH compilers?

I think they use a "wrapper". They still use the old compiler but it's deeper in the structure. They use Clang now and they support C99 and C90 as opposed to only C90(C89) up until v1.45.
It's because of the AVR compilers ...
Logged
Manuel
Senior Member
****
Offline Offline

Posts: 316

Thank You
-Given: 648
-Receive: 182


« Reply #180 on: June 27, 2018, 01:05:29 13:05 »

I confirm you your written.

So I think investigations should follow on 'xc8-cc.exe'..

take care,

Xo!
Logged

-> An Apple a Day does not Let U become a Macintosh!
metal
Global Moderator
Hero Member
*****
Offline Offline

Posts: 2420

Thank You
-Given: 862
-Receive: 678


Top Topic Starter


« Reply #181 on: June 27, 2018, 03:16:37 15:16 »

I think they use a "wrapper". They still use the old compiler but it's deeper in the structure. They use Clang now and they support C99 and C90 as opposed to only C90(C89) up until v1.45.
It's because of the AVR compilers ...

I hope they don't kill microsoft IDE, it is better than Java crap..
Logged
mars01
V.I.P
Hero Member
*****
Offline Offline

Posts: 536

Thank You
-Given: 693
-Receive: 1763



« Reply #182 on: June 27, 2018, 04:34:39 16:34 »

I hope they don't kill microsoft IDE, it is better than Java crap..

I agree, actually I hope they start supporting PIC devices in Atmel Studio since they made the choice to use a GCC-like wrapper.
Logged
alichan
Junior Member
**
Offline Offline

Posts: 94

Thank You
-Given: 28
-Receive: 88


« Reply #183 on: August 11, 2018, 09:41:49 21:41 »

I guess we should stay away from v2.0 until they get the hang of it. The developers may have attempted too much for this release.
Amen... Adding C99 support is a major change and surely a major bug source.
Logged
intel
Hero Member
*****
Offline Offline

Posts: 520

Thank You
-Given: 53
-Receive: 2141



« Reply #184 on: November 17, 2018, 12:52:56 12:52 »


Hello there;
I could not get a pro mode of xc8 v2.0 version. I've done everything imaginable. After formatting the computer, I installed the xc8 v2.0 version directly. I don't know if anything was v1.45 installed before. I don't know if I'm connected to the internet. One of the masters should be interested.

Logged

In life, most genuine mentor is science.
koky
Active Member
***
Offline Offline

Posts: 180

Thank You
-Given: 149
-Receive: 157


WWW
« Reply #185 on: November 17, 2018, 04:00:03 16:00 »

You must see the:
« Reply #172 on: June 13, 2018, 01:19:34 13:19 »
attention at the right BIN subdirectory
Logged
intel
Hero Member
*****
Offline Offline

Posts: 520

Thank You
-Given: 53
-Receive: 2141



« Reply #186 on: November 17, 2018, 04:05:30 16:05 »

You must see the:
« Reply #172 on: June 13, 2018, 01:19:34 13:19 »
attention at the right BIN subdirectory


Thanks koky;
I already made them. I think there is a changing license validation procedure.
Logged

In life, most genuine mentor is science.
Top
Senior Member
****
Offline Offline

Posts: 339

Thank You
-Given: 52
-Receive: 1718


« Reply #187 on: November 17, 2018, 04:09:29 16:09 »

Open a command prompt as admin and run the following commands:
"C:\Program Files (x86)\Microchip\xc8\v2.00\bin\xclm.exe"
"C:\Program Files (x86)\Microchip\xc8\v2.00\pic\bin\xclm.exe"
Report back with results.
« Last Edit: November 17, 2018, 04:12:48 16:12 by Top » Logged
intel
Hero Member
*****
Offline Offline

Posts: 520

Thank You
-Given: 53
-Receive: 2141



« Reply #188 on: November 17, 2018, 04:30:41 16:30 »


Open a command prompt as admin and run the following commands:
"C:\Program Files (x86)\Microchip\xc8\v2.00\bin\xclm.exe"
"C:\Program Files (x86)\Microchip\xc8\v2.00\pic\bin\xclm.exe"
Report back with results.

"C:\Program Files\Microchip\xc8\v2.00\pic\bin\xclm.exe" did not pay attention to the new file location. Now the program as a result worked. Thank you so much Master Top.
Logged

In life, most genuine mentor is science.
Catcatcat
Senior Member
****
Offline Offline

Posts: 417

Thank You
-Given: 276
-Receive: 1536



WWW
« Reply #189 on: January 16, 2019, 10:59:16 10:59 »

Compiler update released

MPLAB® XC8 Compiler v2.05

The microchip changed the principle of treatment, the "dancing with a tambourine" helped.  Cheesy If you copy the missing files in the folder C: \ Program Files (x86) \ Microchip \ xc8 \ v2.05 \ pic \ bin, the compiler started working.

for comparison
v2.05 C standart C 99

« Last Edit: January 16, 2019, 11:37:32 11:37 by Catcatcat » Logged
papy_bidouille
Newbie
*
Offline Offline

Posts: 24

Thank You
-Given: 128
-Receive: 22


« Reply #190 on: January 17, 2019, 03:43:49 15:43 »

7264 bytes less for my application I can add additional options
Thanks xclm.exe
And thank you to those who contributed.
Logged
HackAndCrack
Senior Member
****
Offline Offline

Posts: 293

Thank You
-Given: 175
-Receive: 802


« Reply #191 on: January 22, 2019, 12:48:29 12:48 »

What is the cracking procedure for XC8 v2.05 ?

I installed MPLAB X 5.10 and XC8 v2.05 yesterday and applied the crack as mentioned in latest sticky file and changed compiler options to Free, Standard and PRO and compiled but for all modes I get same .hex. I use PIC16F877A for a Blinky project.
Logged
mars01
V.I.P
Hero Member
*****
Offline Offline

Posts: 536

Thank You
-Given: 693
-Receive: 1763



« Reply #192 on: January 22, 2019, 01:47:04 13:47 »

What is the cracking procedure for XC8 v2.05 ?

I installed MPLAB X 5.10 and XC8 v2.05 yesterday and applied the crack as mentioned in latest sticky file and changed compiler options to Free, Standard and PRO and compiled but for all modes I get same .hex. I use PIC16F877A for a Blinky project.

Read the Reply #189, here: http://www.sonsivri.to/forum/index.php?topic=45707.msg191433#msg191433 it explain the extra steps.

It's quite simple.
1. Rename xclm file to xclm.old and copy the new xclm.exe file here:
Code:
C:\Program Files (x86)\Microchip\xc8\v2.05\bin
2. Copy both files (xclm.old and xclm.exe) from the previous location to:
Code:
C:\Program Files (x86)\Microchip\xc8\v2.05\pic\bin
and run the xclm.exe here as admin to patch the files.

There are no longer the options: Free, Standard and Pro. There are only different kinds of optimizations in GNU language like: O2, O3, O3 + s, some are available only for the licensed compiler.
« Last Edit: January 22, 2019, 01:50:20 13:50 by mars01 » Logged
Manuel
Senior Member
****
Offline Offline

Posts: 316

Thank You
-Given: 648
-Receive: 182


« Reply #193 on: April 24, 2019, 11:01:49 11:01 »

Did not investigated digging compiled but 2.05 is anyway bigger than 2.00 in both code and vars generation.

Then in 2.00 or previous the optimizer used to remove unused vars, the 2.05 leave them in.

Quite odd in this.

Those facts noted with Pic15F323 just for your interest...

Does anyone noticed this ?

X!
« Last Edit: April 24, 2019, 11:43:48 11:43 by Manuel » Logged

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

Posts: 417

Thank You
-Given: 276
-Receive: 1536



WWW
« Reply #194 on: April 25, 2019, 07:22:47 07:22 »

Version 1.45 gives the most efficient optimization by code size.
Logged
Manuel
Senior Member
****
Offline Offline

Posts: 316

Thank You
-Given: 648
-Receive: 182


« Reply #195 on: April 25, 2019, 07:37:09 07:37 »

I will take time to investigate further so, since for the PIC12F510 there is no real difference between 2.00 and 2.05.

I will check 1.45 as well just for curiosity.

take care,
X!
Logged

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

Posts: 180

Thank You
-Given: 149
-Receive: 157


WWW
« Reply #196 on: July 28, 2019, 04:39:14 16:39 »

I have try with 2.09 and seem don't work
Logged
Top
Senior Member
****
Offline Offline

Posts: 339

Thank You
-Given: 52
-Receive: 1718


« Reply #197 on: July 28, 2019, 05:03:33 17:03 »

I have try with 2.09 and seem don't work

Open a command prompt as admin and run the following commands:
"C:\Program Files (x86)\Microchip\xc8\v2.09\bin\xclm.exe"
"C:\Program Files (x86)\Microchip\xc8\v2.09\pic\bin\xclm.exe"

Report back with results.
Logged
koky
Active Member
***
Offline Offline

Posts: 180

Thank You
-Given: 149
-Receive: 157


WWW
« Reply #198 on: July 28, 2019, 06:50:34 18:50 »

C:\Program Files (x86)\Microchip\xc8\v2.09\pic\bin>xclm.exe
Patched 40 bytes in file ./aspic.exe
Patched 40 bytes in file ./aspic18.exe
Patched 40 bytes in file ./cgpic.exe
Patched 40 bytes in file ./cgpic18.exe
Patched 40 bytes in file ./picc.exe
Patched 40 bytes in file ./picc18.exe
Patched SHA in 6 of 6 files
Logged
Top
Senior Member
****
Offline Offline

Posts: 339

Thank You
-Given: 52
-Receive: 1718


« Reply #199 on: July 28, 2019, 08:34:18 20:34 »

So, does it work now?
Logged
Pages: 1 2 3 4 5 6 7 [8] 9 10 11 12
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