pumper
Junior Member
Offline
Posts: 35
Thank You
-Given: 13
-Receive: 18
|
|
« Reply #50 on: July 30, 2013, 11:39:51 11:39 » |
|
I installed the compiler and crack and compiler works fine but when i compile the code the licence type is : License type: w sorry for the spell
|
|
|
Logged
|
C++ is designed to give the programmer choice, even if this makes it possible for the programmer to choose incorrectly
|
|
|
Ichan
Hero Member
Offline
Posts: 833
Thank You
-Given: 312
-Receive: 392
|
|
« Reply #51 on: July 30, 2013, 08:19:01 20:19 » |
|
|
|
|
Logged
|
There is Gray, not only Black or White.
|
|
|
max
Senior Member
Offline
Posts: 321
Thank You
-Given: 1659
-Receive: 52
|
|
« Reply #52 on: August 02, 2013, 04:04:56 04:04 » |
|
is there any tutorial how to start with xc8 compiler using mplab ide 8.xx
regards
|
|
« Last Edit: August 02, 2013, 04:33:24 04:33 by max »
|
Logged
|
Fate arrived and made the conscious unconscious It silenced the activity of life.
|
|
|
avrlover
Active Member
Offline
Posts: 115
Thank You
-Given: 50
-Receive: 219
|
|
« Reply #53 on: August 02, 2013, 05:00:53 05:00 » |
|
here you can get xc8 tutorials go to subtopic Mid-range PIC C Programming http://www.gooligum.com.au/tutorials.html
|
|
|
Logged
|
|
|
|
|
|
micropcb
Active Member
Muted
Offline
Posts: 113
Thank You
-Given: 53
-Receive: 390
|
|
« Reply #56 on: August 10, 2013, 02:20:31 02:20 » |
|
Sorry to have missed that. I was trying to get started with mplabx and xc8 but thought the procedure was very similar to that for xc8.
|
|
|
Logged
|
|
|
|
Manuel
Senior Member
Offline
Posts: 329
Thank You
-Given: 680
-Receive: 192
|
|
« Reply #57 on: October 07, 2013, 10:49:33 10:49 » |
|
FYI: -> MPLAB® XC8 Compiler v1.21
No Info Still available on update contents...
It still Work!
Manuel.
|
|
|
Logged
|
-> An Apple a Day does not Let U become a Macintosh!
|
|
|
alichan
Junior Member
Offline
Posts: 94
Thank You
-Given: 28
-Receive: 88
|
|
« Reply #58 on: December 06, 2013, 07:17:39 19:17 » |
|
Hello.
File is working with current XC8 version v1.21.
Provided my 'metal' i attach it anyway. I got some strange behaviours with other files i found in this thread (surely due to outdated), but this one worked nicely.
|
|
|
Logged
|
|
|
|
Catcatcat
Senior Member
Offline
Posts: 432
Thank You
-Given: 284
-Receive: 1653
|
|
« Reply #59 on: January 14, 2014, 05:40:02 17:40 » |
|
|
|
|
Logged
|
|
|
|
alichan
Junior Member
Offline
Posts: 94
Thank You
-Given: 28
-Receive: 88
|
|
« Reply #60 on: February 05, 2014, 09:19:50 21:19 » |
|
Hello
I tested the patch with the 1.30 version and:
-the messages about free mode, bla bla, are suppressed as expected. -generated code (hex) is the same both in free mode as with the patch applied (last one published in this thread, working with 1.21). Reports from XC8 are identical. Also i compared both codes manually in a hex editor with no diferences.
Since the code is quite simple (just blinking a led) i can't do any further affirmation, because perhaps there is nothing to optimize so the generated hex files are the same in both cases.
Resuming: i don't know if the patch is still working and the PRO mode is really enabled. Looks it's not enabled.
I'll do more checks.
|
|
« Last Edit: February 05, 2014, 10:43:41 22:43 by alichan »
|
Logged
|
|
|
|
metal
Global Moderator
Hero Member
Offline
Posts: 2420
Thank You
-Given: 862
-Receive: 678
Top Topic Starter
|
|
« Reply #61 on: February 05, 2014, 09:53:12 21:53 » |
|
this is not true; I compiled few minutes ago a code and it produces the following in free mode:
Memory Summary: Program space used 195h ( 405) of 2000h words ( 4.9%) Data space used 23h ( 35) of 170h bytes ( 9.5%) EEPROM space used 0h ( 0) of 100h bytes ( 0.0%) Data stack space used 0h ( 0) of 60h bytes ( 0.0%) Configuration bits used 1h ( 1) of 1h word (100.0%) ID Location space used 0h ( 0) of 4h bytes ( 0.0%)
while in PRO mode it produces the following:
Memory Summary: Program space used 13Dh ( 317) of 2000h words ( 3.9%) Data space used 20h ( 32) of 170h bytes ( 8.7%) EEPROM space used 0h ( 0) of 100h bytes ( 0.0%) Data stack space used 0h ( 0) of 60h bytes ( 0.0%) Configuration bits used 1h ( 1) of 1h word (100.0%) ID Location space used 0h ( 0) of 4h bytes ( 0.0%)
Compiler version is 1.30, actually I tested the PRO code on real HW and it works. I feel like this is a waste of time to test again.
|
|
|
Logged
|
|
|
|
alichan
Junior Member
Offline
Posts: 94
Thank You
-Given: 28
-Receive: 88
|
|
« Reply #62 on: February 05, 2014, 10:42:23 22:42 » |
|
Hello As i said i had to perform more checks. Result: patch still is working in free, std and pro mode for XC8 v1.30 Checked generated asm files, hex files and compiler output to console. FREE: Memory Summary: Program space used 5Dh ( 93) of 800h words ( 4.5%) Data space used Bh ( 11) of 80h bytes ( 8.6%) EEPROM space None available Data stack space used 0h ( 0) of 70h bytes ( 0.0%) Configuration bits used 1h ( 1) of 2h words ( 50.0%) ID Location space used 0h ( 0) of 4h bytes ( 0.0%) STD: Memory Summary: Program space used 56h ( 86) of 800h words ( 4.2%) Data space used Bh ( 11) of 80h bytes ( 8.6%) EEPROM space None available Data stack space used 0h ( 0) of 70h bytes ( 0.0%) Configuration bits used 1h ( 1) of 2h words ( 50.0%) ID Location space used 0h ( 0) of 4h bytes ( 0.0%) PRO: Memory Summary: Program space used 3Eh ( 62) of 800h words ( 3.0%) Data space used Bh ( 11) of 80h bytes ( 8.6%) EEPROM space None available Data stack space used 0h ( 0) of 70h bytes ( 0.0%) Configuration bits used 1h ( 1) of 2h words ( 50.0%) ID Location space used 0h ( 0) of 4h bytes ( 0.0%) BTW, surfing the web i found this guy checking the optimizations www.t4f.org/articles/optimization-of-microchip-pic-xc8-compiler-in-free-and-pro-mode/, it's interesting. I have to agree with him after my own checks, the code generated in free mode is.. weird and suspicious. Regards.
|
|
« Last Edit: February 05, 2014, 11:20:48 23:20 by alichan »
|
Logged
|
|
|
|
Catcatcat
Senior Member
Offline
Posts: 432
Thank You
-Given: 284
-Receive: 1653
|
|
« Reply #63 on: February 06, 2014, 06:54:49 06:54 » |
|
Medicine works is 100% tested. A degree of optimization depends on the program and features utilized.
|
|
|
Logged
|
|
|
|
jamesbond
Newbie
Offline
Posts: 23
Thank You
-Given: 50
-Receive: 9
|
|
« Reply #64 on: April 01, 2014, 02:25:00 14:25 » |
|
xc8 Compiler V1.31 available
|
|
|
Logged
|
|
|
|
alichan
Junior Member
Offline
Posts: 94
Thank You
-Given: 28
-Receive: 88
|
|
« Reply #65 on: April 18, 2014, 02:51:31 14:51 » |
|
v1.31: path tested, still working Results: free ---- Program space used 57h ( 87) of 800h words ( 4.2%) Data space used Eh ( 14) of 80h bytes ( 10.9%) EEPROM space None available Data stack space used 0h ( 0) of 70h bytes ( 0.0%) Configuration bits used 1h ( 1) of 2h words ( 50.0%) ID Location space used 0h ( 0) of 4h bytes ( 0.0%)
std --- Program space used 4Ch ( 76) of 800h words ( 3.7%) Data space used Eh ( 14) of 80h bytes ( 10.9%) EEPROM space None available Data stack space used 0h ( 0) of 70h bytes ( 0.0%) Configuration bits used 1h ( 1) of 2h words ( 50.0%) ID Location space used 0h ( 0) of 4h bytes ( 0.0%)
pro --- Program space used 1Ch ( 28) of 800h words ( 1.4%) Data space used Dh ( 13) of 80h bytes ( 10.2%) EEPROM space None available Data stack space used 0h ( 0) of 70h bytes ( 0.0%) Configuration bits used 1h ( 1) of 2h words ( 50.0%) ID Location space used 0h ( 0) of 4h bytes ( 0.0%)
|
|
|
Logged
|
|
|
|
Manuel
Senior Member
Offline
Posts: 329
Thank You
-Given: 680
-Receive: 192
|
|
« Reply #66 on: June 10, 2014, 07:53:41 07:53 » |
|
FYI: released a new version Windows (x86/x64) MPLAB® XC8 Compiler v1.32
CAN NOT 'njoy! :-(
Patch anymore working...
Manuel.
|
|
« Last Edit: June 10, 2014, 08:26:54 08:26 by Manuel »
|
Logged
|
-> An Apple a Day does not Let U become a Macintosh!
|
|
|
metal
Global Moderator
Hero Member
Offline
Posts: 2420
Thank You
-Given: 862
-Receive: 678
Top Topic Starter
|
|
« Reply #67 on: June 10, 2014, 12:01:09 12:01 » |
|
FYI: released a new version Windows (x86/x64) MPLAB® XC8 Compiler v1.32
CAN NOT 'njoy! :-(
Patch anymore working...
Manuel.
during/after installing, where does it mention that this executable is installing x64 executables? I am asking because when I use "File for Windows" to check if this application is x64 or not, it reports the following: file.exe "C:\Program Files (x86)\Microchip\xc8\v1.32\bin\picc18.exe" PE32 executable for MS Windows (console) Intel 80386 32-bit
file.exe "C:\Program Files (x86)\Microchip\xc8\v1.32\bin\picc.exe" PE32 executable for MS Windows (console) Intel 80386 32-bit
file.exe "C:\Program Files (x86)\Microchip\xc8\v1.32\bin\xc8.exe" PE32 executable for MS Windows (console) Intel 80386 32-bit am I missing sth here? Your post sounds as if the patch is not working: CAN NOT 'njoy! :-(
Patch anymore working...
Manuel.
It's annoying to post this way, what am I supposed to understand from this sentence: Patch anymore working..., you made me uninstall v1.31, download and install v1.32, test some codes to see if the license is working or not, here is what xc8 says about license (last line): C:\Program Files (x86)\Microchip\xc8\v1.32\bin>xc8 --help Microchip MPLAB XC8 C Compiler V1.32 Part Support Version: 1.32 (A) Copyright (C) 2014 Microchip Technology Inc. License type: Node Configuration Please check before posting so you don't waste other members' time, even if you are right, add more lines so we understand what you are trying to say..
|
|
« Last Edit: June 10, 2014, 12:06:18 12:06 by metal »
|
Logged
|
|
|
|
|
Catcatcat
Senior Member
Offline
Posts: 432
Thank You
-Given: 284
-Receive: 1653
|
|
« Reply #69 on: June 10, 2014, 01:51:48 13:51 » |
|
Regardless of the option selected compilation v32 works only in Free Mode, the virus mutated , you need a new drug
|
|
|
Logged
|
|
|
|
petarp
Junior Member
Offline
Posts: 68
Thank You
-Given: 26
-Receive: 51
|
|
« Reply #70 on: June 16, 2014, 12:23:18 12:23 » |
|
Hi, Solution for new release is: 1. Open "C:\Program Files\Microchip\xc8\v1.32\bin\picc.exe" file with hex editor. 2. Find these bytes "74 16 83 EC 08 56" and replace first two bytes with "90" ("90 90 83 EC 08 56"). 3. Find these bytes "74 15 83 C3" and replace first byte with "EB" ("EB 15 83 C3"). 4. Do same with "C:\Program Files\Microchip\xc8\v1.32\bin\picc18.exe" file. 5. And use latest "xclm" file from here.
They check for modified xclm file as is in latest XC32 release.
Regards.
|
|
« Last Edit: June 16, 2014, 12:27:14 12:27 by petarp »
|
Logged
|
|
|
|
Wannabe
Global Moderator
Senior Member
Offline
Posts: 430
Thank You
-Given: 228
-Receive: 285
|
|
« Reply #71 on: June 16, 2014, 01:53:00 13:53 » |
|
Hi, Solution for new release is: 1. Open "C:\Program Files\Microchip\xc8\v1.32\bin\picc.exe" file with hex editor. 2. Find these bytes "74 16 83 EC 08 56" and replace first two bytes with "90" ("90 90 83 EC 08 56"). 3. Find these bytes "74 15 83 C3" and replace first byte with "EB" ("EB 15 83 C3"). 4. Do same with "C:\Program Files\Microchip\xc8\v1.32\bin\picc18.exe" file. 5. And use latest "xclm" file from here.
They check for modified xclm file as is in latest XC32 release.
Regards.
I took the liberty of making a patch using your findings. All credits go to you, petarp As always, antivirus may say something about the patch. I've included the dup2-project. Link for patch included in my next message below.
|
|
« Last Edit: June 18, 2014, 12:30:14 12:30 by Wannabe »
|
Logged
|
|
|
|
Catcatcat
Senior Member
Offline
Posts: 432
Thank You
-Given: 284
-Receive: 1653
|
|
« Reply #72 on: June 16, 2014, 06:09:01 18:09 » |
|
Many thanks petarp! It works!
|
|
|
Logged
|
|
|
|
Wannabe
Global Moderator
Senior Member
Offline
Posts: 430
Thank You
-Given: 228
-Receive: 285
|
|
« Reply #73 on: June 18, 2014, 12:19:52 12:19 » |
|
It seems the file cgpic.exe and cgpic18.exe perform the same checks for xclm.exe . Unsure if it has an impact on compilation. I have included a new XC8 Patcher that take care of this, just in case.
|
|
« Last Edit: June 18, 2014, 12:57:55 12:57 by Wannabe »
|
Logged
|
|
|
|
microcris
Newbie
Offline
Posts: 7
Thank You
-Given: 4
-Receive: 3
|
|
« Reply #74 on: June 18, 2014, 01:13:01 13:13 » |
|
Hello everyone Hi, Solution for new release is: 1. Open "C:\Program Files\Microchip\xc8\v1.32\bin\picc.exe" file with hex editor. 2. Find these bytes "74 16 83 EC 08 56" and replace first two bytes with "90" ("90 90 83 EC 08 56"). 3. Find these bytes "74 15 83 C3" and replace first byte with "EB" ("EB 15 83 C3"). 4. Do same with "C:\Program Files\Microchip\xc8\v1.32\bin\picc18.exe" file. 5. And use latest "xclm" file from here.
They check for modified xclm file as is in latest XC32 release.
Regards.
How do you found those bytes, the right bytes to change? I'm on linux and, obviously, the bytes to change are different. Like you said, they check for the xclm authenticity. If I make a strace ./picc18 --help
among many things I get: write(1, "\n", 1) = 1 open("/opt/microchip/xc8/v1.32/bin/xclm", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\2\0\3\0\1\0\0\0@\245\4\0104\0\0\0"..., 16384) = 16384
then I can make a objdump: objdump -D -S -r -j .text ./picc18
and I get this (posting only a small part) ./picc18: file format elf32-i386
Disassembly of section .text:
08048130 <.text>: 8048130: 31 ed xor %ebp,%ebp 8048132: 5e pop %esi 8048133: 89 e1 mov %esp,%ecx 8048135: 83 e4 f0 and $0xfffffff0,%esp 8048138: 50 push %eax 8048139: 54 push %esp 804813a: 52 push %edx 804813b: 68 90 f2 07 08 push $0x807f290 8048140: 68 d0 f2 07 08 push $0x807f2d0 8048145: 51 push %ecx 8048146: 56 push %esi 8048147: 68 80 fa 04 08 push $0x804fa80 804814c: e8 af 6b 03 00 call 0x807ed00
But still, I can't find a relation between the bytes in the objdump and the place where the file is opened and where they make a decision if the file is original or not. Does anyone can help in this ?
|
|
« Last Edit: June 18, 2014, 01:17:53 13:17 by microcris »
|
Logged
|
|
|
|
|