[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4762: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4764: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4765: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4766: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
Firewing • View topic - Error when using Microchip 16 compiler

Error when using Microchip 16 compiler

Please note that this toolsuite is not part of the official Firewing release but we will try and help where we can...

Re: Error when using Microchip 16 compiler

Postby David John Barker » Mon Jan 13, 2014 2:46 pm

Hi Jerry

Thanks for taking the time to look at this.

> I tried to see if maybe there was some sort of optimization change that might "fix" this

Firewing16 (not Firewing32) uses -O0, so it would be a bit cheeky of Microchip if they have turned down the optimisation for the "free" version of xv16 even further. Certainly if I was a "C" coder I would not be happy with the changes in code size between the two versions. Even worse though is why 1.11 works but code generated by 1.20 can fail. I've not got to the bottom of it and like you, I don't have the time or energy to take it further.
User avatar
David John Barker
 
Posts: 485
Joined: Thu Nov 08, 2012 12:21 pm

Re: Error when using Microchip 16 compiler

Postby Jerry Messina » Mon Jan 13, 2014 3:02 pm

Supposedly optimization level -O1 is available in the free mode, and I seem to recall adding that dropped the code down to ~17K or so.

I didn't really look at the output, so I've no clue if it actually worked or not. I know debugging can be a pain once you enable anything past -O0.
Jerry Messina
 
Posts: 278
Joined: Thu Feb 14, 2013 10:16 am

Re: Error when using Microchip 16 compiler

Postby Jerry Messina » Thu Jan 16, 2014 1:19 pm

Jerry Messina
 
Posts: 278
Joined: Thu Feb 14, 2013 10:16 am

Re: Error when using Microchip 16 compiler

Postby David John Barker » Thu Jan 16, 2014 2:29 pm

Thanks for the heads up Jerry. Here is what I'm now seeing. Assuming "progLCDPlus.bas" with "SetRTC()" enabled, as previously discussed

XC16 1.11 20,835 Bytes [Program works as expected]
XC16 1.20 26,346 Bytes [Program *does not* run correctly]
XC16 1.21 24,534 Bytes [Program works as expected]

Clearly 1.20 is a turkey. 1.21 seems to work OK, but the program is still significantly larger that 1.11...
User avatar
David John Barker
 
Posts: 485
Joined: Thu Nov 08, 2012 12:21 pm

Re: Error when using Microchip 16 compiler

Postby Jerry Messina » Thu Jan 16, 2014 2:35 pm

Jerry Messina
 
Posts: 278
Joined: Thu Feb 14, 2013 10:16 am

Previous

Return to Microchip 16

Who is online

Users browsing this forum: No registered users and 1 guest

cron

x