Hot!I found a bug in XC16 ?

Page: 123 > Showing page 1 of 3
Author
JanJansen
Super Member
  • Total Posts : 486
  • Reward points : 0
  • Joined: 2012/08/25 03:26:34
  • Location: 0
  • Status: offline
2017/07/19 05:09:20 (permalink)
0

I found a bug in XC16 ?

Hi, last week i was programming a DSPIC33FJ128GP802 in XC16 and found something weird.
I installed the latest version today, the bug is still there.
 
I try make bandlimited waveforms copying sinus data from ROM to RAM.
Here is the code that give weird results :

// temp
unsigned short s;
unsigned char i;
long lTemp,lTemp2;

//------------------------------------------------------------------------------
// Load Saw
//------------------------------------------------------------------------------
void LoadSaw()
{
unsigned short p;

for( s = 0; s < LUTSIZE_SINE; s++ )
   {
   lTemp = sinus[ s ];
   
   p = ( s * 2 ) & MAXBIT_SINE;
   lTemp += sinus[ p ] / 2;
   
   p = ( s * 3 ) & MAXBIT_SINE;
   lTemp += sinus[ p ] / 3;
   
   p = ( s * 4 ) & MAXBIT_SINE;
   lTemp += sinus[ p ] / 4;
   
   p = ( s * 5 ) & MAXBIT_SINE;
   lTemp += sinus[ p ] / 5;
   
   p = ( s * 6 ) & MAXBIT_SINE;
   lTemp += sinus[ p ] / 6;
   
   p = ( s * 7 ) & MAXBIT_SINE;
   lTemp += sinus[ p ] / 7;
   
   p = ( s * 8 ) & MAXBIT_SINE;
   lTemp += sinus[ p ] / 8;
   
   p = ( s * 9 ) & MAXBIT_SINE;
   lTemp += sinus[ p ] / 9;
   
   p = ( s * 10 ) & MAXBIT_SINE;
   lTemp += sinus[ p ] / 10;
   
   p = ( s * 11 ) & MAXBIT_SINE;
   lTemp += sinus[ p ] / 11;
   
   p = ( s * 12 ) & MAXBIT_SINE;
   lTemp += sinus[ p ] / 12;
   
   p = ( s * 13 ) & MAXBIT_SINE;
   lTemp += sinus[ p ] / 13;
   
   p = ( s * 14 ) & MAXBIT_SINE;
   lTemp += sinus[ p ] / 14;
   
   p = ( s * 15 ) & MAXBIT_SINE;
   lTemp += sinus[ p ] / 15;
   
   p = ( s * 16 ) & MAXBIT_SINE;
   lTemp += sinus[ p ] / 16;
   
   p = ( s * 17 ) & MAXBIT_SINE;
   lTemp += sinus[ p ] / 17;
   
   p = ( s * 18 ) & MAXBIT_SINE;
   lTemp += sinus[ p ] / 18;
   
   p = ( s * 19 ) & MAXBIT_SINE;
   lTemp += sinus[ p ] / 19;
   
   p = ( s * 20 ) & MAXBIT_SINE;
   lTemp += sinus[ p ] / 20;
   
   p = ( s * 21 ) & MAXBIT_SINE;
   lTemp += sinus[ p ] / 21;
   
   p = ( s * 22 ) & MAXBIT_SINE;
   lTemp += sinus[ p ] / 22;
   
   p = ( s * 23 ) & MAXBIT_SINE;
   lTemp += sinus[ p ] / 23;
   
   p = ( s * 24 ) & MAXBIT_SINE;
   lTemp += sinus[ p ] / 24;
   
   p = ( s * 25 ) & MAXBIT_SINE;
   lTemp += sinus[ p ] / 25;
   
   p = ( s * 26 ) & MAXBIT_SINE;
   lTemp += sinus[ p ] / 26;
   
   p = ( s * 27 ) & MAXBIT_SINE;
   lTemp += sinus[ p ] / 27;
   
   p = ( s * 28 ) & MAXBIT_SINE;
   lTemp += sinus[ p ] / 28;
   
   p = ( s * 29 ) & MAXBIT_SINE;
   lTemp += sinus[ p ] / 29;
   
   p = ( s * 30 ) & MAXBIT_SINE;
   lTemp += sinus[ p ] / 30;
   
   p = ( s * 31 ) & MAXBIT_SINE;
   lTemp += sinus[ p ] / 31;
   
   p = ( s * 32 ) & MAXBIT_SINE;
   lTemp += sinus[ p ] / 32;
   
   sawlut[ s ] = ( short )( lTemp >> 1 );
   }
}

 
It was fixed with this :

//------------------------------------------------------------------------------
void LoadHarmonic( unsigned char harmonic )
{
lTemp += sinus[ ( s * harmonic ) & MAXBIT_SINE ] / harmonic;
}

//------------------------------------------------------------------------------
// Load Saw
//------------------------------------------------------------------------------
void LoadSaw()
{
for( s = 0; s < LUTSIZE_SINE; s++ )
   {
   lTemp = sinus[ s ];
   for( i = FIRST_HARMONIC; i <= 32; i++ )LoadHarmonic( i );
   sawlut[ s ] = ( short )( lTemp >> 1 );
   }
}

 
I think you might want to know this.
bye
post edited by JanJansen - 2017/07/19 05:10:43
#1

50 Replies Related Threads

    qhb
    Superb Member
    • Total Posts : 5087
    • Reward points : 0
    • Joined: 2016/06/05 14:55:32
    • Location: One step ahead...
    • Status: online
    Re: I found a bug in XC16 ? 2017/07/19 07:21:30 (permalink)
    +3 (3)
    This is meaningless if you don't post the entire program,
    and don't post what you call "weird results".
     
    I have yet to see a topic claiming to have found a bug that really had. It's nearly always someone not understand how to debug correctly, and how optimisation works.
     
     
     
    #2
    JanJansen
    Super Member
    • Total Posts : 486
    • Reward points : 0
    • Joined: 2012/08/25 03:26:34
    • Location: 0
    • Status: offline
    Re: I found a bug in XC16 ? 2017/07/19 09:02:26 (permalink)
    0
    I dont care about debug, i found it this bug, its the second bug i found.
    In this code the problem is, no more.
     
    The weird results are different sound then saw waveform, while the code should do the same ?
    I,m just trying to help.
    post edited by JanJansen - 2017/07/19 09:06:16
    #3
    rodims
    Super Member
    • Total Posts : 816
    • Reward points : 0
    • Joined: 2009/02/10 11:08:59
    • Location: 51.9627, 7.6262
    • Status: online
    Re: I found a bug in XC16 ? 2017/07/19 09:38:24 (permalink)
    +1 (1)
    The point was that without posting more code, which allows anybody to reproduce your problem, nobody can tell what is ultimate thing which causes the difference in the results. Also without showing both correct and wrong results, nobody can compare his result to your results, nor your different results.
     
    I.e. without knowing, what the exact error could be, nobody can avoid to do the same error. 
    Also, usually in such a case, where you selflessly want to help to improve the product, you would create a ticket for Microchip. Then they would also need more information to reproduce your assumed bug, otherwise they could not fix it.
     
    < edit: e.g. the declarations/definitions for sinus table or MAXBIT_SINE are missing.  The central expression definitely uses different intermediate results (due to types and implicit castings), whether this is related to your observation is not possible to tell without that >
     
     
    post edited by rodims - 2017/07/19 09:59:15
    #4
    RISC
    Super Member
    • Total Posts : 4229
    • Reward points : 0
    • Status: offline
    Re: I found a bug in XC16 ? 2017/07/19 09:47:36 (permalink)
    0
    Hi,
    Which XC16 compiler version do you use ?  (latest one is v1.31)
    Regards
     
    #5
    JanJansen
    Super Member
    • Total Posts : 486
    • Reward points : 0
    • Joined: 2012/08/25 03:26:34
    • Location: 0
    • Status: offline
    Re: I found a bug in XC16 ? 2017/07/19 09:48:33 (permalink)
    0
    edit : Yes i have the 1.31 downloaded yesterday.
    post edited by JanJansen - 2017/07/19 09:50:57
    #6
    JanJansen
    Super Member
    • Total Posts : 486
    • Reward points : 0
    • Joined: 2012/08/25 03:26:34
    • Location: 0
    • Status: offline
    Re: I found a bug in XC16 ? 2017/07/19 09:56:28 (permalink)
    0
    Sorry, here is the missing code.
     

    #define LUTSIZE_SINE 2048
    #define MAXBIT_SINE ( LUTSIZE_SINE - 1 )

    #7
    rodims
    Super Member
    • Total Posts : 816
    • Reward points : 0
    • Joined: 2009/02/10 11:08:59
    • Location: 51.9627, 7.6262
    • Status: online
    Re: I found a bug in XC16 ? 2017/07/19 10:01:18 (permalink)
    +1 (1)
    The type and content of sinus ?
    If you post, please use code tags !
    #8
    RISC
    Super Member
    • Total Posts : 4229
    • Reward points : 0
    • Status: offline
    Re: I found a bug in XC16 ? 2017/07/19 10:03:39 (permalink)
    0
    Hi,
    We are not sure that the issue you mention is a compiler issue or an MPLAB X display issue...
    It could be that MPLAB X does not display correctly a variable....
    The issue you see is in MPLAB X watch window ?  can you post a screenshot ?
    Regards
    #9
    JanJansen
    Super Member
    • Total Posts : 486
    • Reward points : 0
    • Joined: 2012/08/25 03:26:34
    • Location: 0
    • Status: offline
    Re: I found a bug in XC16 ? 2017/07/20 04:07:14 (permalink)
    0
    Hi, i try to attatch the sinus source file to this post.

    RISC
    We are not sure that the issue you mention is a compiler issue or an MPLAB X display issue...
    It could be that MPLAB X does not display correctly a variable....
    The issue you see is in MPLAB X watch window ?  can you post a screenshot ?

     
    I dont know, i program the code in visual studio, then reprogram the chip with MPLAB.
    When the chip is programmed i listen to the sound it makes, and look on the oscilloscope.
    I dont know what watch window is.
     

    const short sinus[ 2048 ] = {
    0,100,201,301,402,502,603,703,804,904,1005,1105,1206,1306,1406,1507,
    1607,1708,1808,1908,2009,2109,2209,2310,2410,2510,2610,2711,2811,2911,3011,3111,
    3211,3311,3411,3511,3611,3711,3811,3911,4011,4110,4210,4310,4409,4509,4608,4708,
    4807,4907,5006,5106,5205,5304,5403,5502,5601,5700,5799,5898,5997,6096,6195,6293,
    6392,6491,6589,6688,6786,6884,6982,7081,7179,7277,7375,7473,7571,7668,7766,7864,
    7961,8059,8156,8253,8351,8448,8545,8642,8739,8836,8932,9029,9126,9222,9319,9415,
    9511,9607,9703,9799,9895,9991,10087,10182,10278,10373,10469,10564,10659,10754,10849,10944,
    11038,11133,11227,11322,11416,11510,11604,11698,11792,11886,11980,12073,12166,12260,12353,12446,
    12539,12632,12724,12817,12909,13002,13094,13186,13278,13370,13462,13553,13645,13736,13827,13918,
    14009,14100,14191,14281,14372,14462,14552,14642,14732,14822,14911,15001,15090,15179,15268,15357,
    15446,15534,15623,15711,15799,15887,15975,16063,16150,16238,16325,16412,16499,16586,16672,16759,
    16845,16931,17017,17103,17189,17274,17360,17445,17530,17615,17699,17784,17868,17952,18036,18120,
    18204,18287,18371,18454,18537,18620,18702,18785,18867,18949,19031,19113,19194,19276,19357,19438,
    19519,19599,19680,19760,19840,19920,20000,20079,20159,20238,20317,20396,20474,20553,20631,20709,
    20787,20864,20942,21019,21096,21173,21249,21326,21402,21478,21554,21629,21705,21780,21855,21930,
    22004,22079,22153,22227,22301,22374,22448,22521,22594,22666,22739,22811,22883,22955,23027,23098,
    23169,23240,23311,23382,23452,23522,23592,23661,23731,23800,23869,23938,24006,24075,24143,24211,
    24278,24346,24413,24480,24546,24613,24679,24745,24811,24877,24942,25007,25072,25136,25201,25265,
    25329,25392,25456,25519,25582,25645,25707,25769,25831,25893,25954,26016,26077,26137,26198,26258,
    26318,26378,26437,26497,26556,26615,26673,26731,26789,26847,26905,26962,27019,27076,27132,27188,
    27244,27300,27355,27411,27466,27520,27575,27629,27683,27736,27790,27843,27896,27948,28001,28053,
    28105,28156,28208,28259,28309,28360,28410,28460,28510,28559,28608,28657,28706,28754,28802,28850,
    28897,28945,28992,29038,29085,29131,29177,29222,29268,29313,29358,29402,29446,29490,29534,29577,
    29621,29663,29706,29748,29790,29832,29873,29915,29955,29996,30036,30076,30116,30156,30195,30234,
    30272,30311,30349,30386,30424,30461,30498,30535,30571,30607,30643,30678,30713,30748,30783,30817,
    30851,30885,30918,30951,30984,31017,31049,31081,31113,31144,31175,31206,31236,31267,31297,31326,
    31356,31385,31413,31442,31470,31498,31525,31553,31580,31606,31633,31659,31684,31710,31735,31760,
    31785,31809,31833,31856,31880,31903,31926,31948,31970,31992,32014,32035,32056,32077,32097,32117,
    32137,32156,32176,32194,32213,32231,32249,32267,32284,32301,32318,32334,32350,32366,32382,32397,
    32412,32426,32441,32455,32468,32482,32495,32508,32520,32532,32544,32556,32567,32578,32588,32599,
    32609,32618,32628,32637,32646,32654,32662,32670,32678,32685,32692,32699,32705,32711,32717,32722,
    32727,32732,32736,32740,32744,32748,32751,32754,32757,32759,32761,32763,32764,32765,32766,32766,
    32767,32766,32766,32765,32764,32763,32761,32759,32757,32754,32751,32748,32744,32740,32736,32732,
    32727,32722,32717,32711,32705,32699,32692,32685,32678,32670,32662,32654,32646,32637,32628,32618,
    32609,32599,32588,32578,32567,32556,32544,32532,32520,32508,32495,32482,32468,32455,32441,32426,
    32412,32397,32382,32366,32350,32334,32318,32301,32284,32267,32249,32231,32213,32194,32176,32156,
    32137,32117,32097,32077,32056,32035,32014,31992,31970,31948,31926,31903,31880,31856,31833,31809,
    31785,31760,31735,31710,31684,31659,31633,31606,31580,31553,31525,31498,31470,31442,31413,31385,
    31356,31326,31297,31267,31236,31206,31175,31144,31113,31081,31049,31017,30984,30951,30918,30885,
    30851,30817,30783,30748,30713,30678,30643,30607,30571,30535,30498,30461,30424,30386,30349,30311,
    30272,30234,30195,30156,30116,30076,30036,29996,29955,29915,29873,29832,29790,29748,29706,29663,
    29621,29577,29534,29490,29446,29402,29358,29313,29268,29222,29177,29131,29085,29038,28992,28945,
    28897,28850,28802,28754,28706,28657,28608,28559,28510,28460,28410,28360,28309,28259,28208,28156,
    28105,28053,28001,27948,27896,27843,27790,27736,27683,27629,27575,27520,27466,27411,27355,27300,
    27244,27188,27132,27076,27019,26962,26905,26847,26789,26731,26673,26615,26556,26497,26437,26378,
    26318,26258,26198,26137,26077,26016,25954,25893,25831,25769,25707,25645,25582,25519,25456,25392,
    25329,25265,25201,25136,25072,25007,24942,24877,24811,24745,24679,24613,24546,24480,24413,24346,
    24278,24211,24143,24075,24006,23938,23869,23800,23731,23661,23592,23522,23452,23382,23311,23240,
    23169,23098,23027,22955,22883,22811,22739,22666,22594,22521,22448,22374,22301,22227,22153,22079,
    22004,21930,21855,21780,21705,21629,21554,21478,21402,21326,21249,21173,21096,21019,20942,20864,
    20787,20709,20631,20553,20474,20396,20317,20238,20159,20079,20000,19920,19840,19760,19680,19599,
    19519,19438,19357,19276,19194,19113,19031,18949,18867,18785,18702,18620,18537,18454,18371,18287,
    18204,18120,18036,17952,17868,17784,17699,17615,17530,17445,17360,17274,17189,17103,17017,16931,
    16845,16759,16672,16586,16499,16412,16325,16238,16150,16063,15975,15887,15799,15711,15623,15534,
    15446,15357,15268,15179,15090,15001,14911,14822,14732,14642,14552,14462,14372,14281,14191,14100,
    14009,13918,13827,13736,13645,13553,13462,13370,13278,13186,13094,13002,12909,12817,12724,12632,
    12539,12446,12353,12260,12166,12073,11980,11886,11792,11698,11604,11510,11416,11322,11227,11133,
    11038,10944,10849,10754,10659,10564,10469,10373,10278,10182,10087,9991,9895,9799,9703,9607,
    9511,9415,9319,9222,9126,9029,8932,8836,8739,8642,8545,8448,8351,8253,8156,8059,
    7961,7864,7766,7668,7571,7473,7375,7277,7179,7081,6982,6884,6786,6688,6589,6491,
    6392,6293,6195,6096,5997,5898,5799,5700,5601,5502,5403,5304,5205,5106,5006,4907,
    4807,4708,4608,4509,4409,4310,4210,4110,4011,3911,3811,3711,3611,3511,3411,3311,
    3211,3111,3011,2911,2811,2711,2610,2510,2410,2310,2209,2109,2009,1908,1808,1708,
    1607,1507,1406,1306,1206,1105,1005,904,804,703,603,502,402,301,201,100,
    0,-100,-201,-301,-402,-502,-603,-703,-804,-904,-1005,-1105,-1206,-1306,-1406,-1507,
    -1607,-1708,-1808,-1908,-2009,-2109,-2209,-2310,-2410,-2510,-2610,-2711,-2811,-2911,-3011,-3111,
    -3211,-3311,-3411,-3511,-3611,-3711,-3811,-3911,-4011,-4110,-4210,-4310,-4409,-4509,-4608,-4708,
    -4807,-4907,-5006,-5106,-5205,-5304,-5403,-5502,-5601,-5700,-5799,-5898,-5997,-6096,-6195,-6293,
    -6392,-6491,-6589,-6688,-6786,-6884,-6982,-7081,-7179,-7277,-7375,-7473,-7571,-7668,-7766,-7864,
    -7961,-8059,-8156,-8253,-8351,-8448,-8545,-8642,-8739,-8836,-8932,-9029,-9126,-9222,-9319,-9415,
    -9511,-9607,-9703,-9799,-9895,-9991,-10087,-10182,-10278,-10373,-10469,-10564,-10659,-10754,-10849,-10944,
    -11038,-11133,-11227,-11322,-11416,-11510,-11604,-11698,-11792,-11886,-11980,-12073,-12166,-12260,-12353,-12446,
    -12539,-12632,-12724,-12817,-12909,-13002,-13094,-13186,-13278,-13370,-13462,-13553,-13645,-13736,-13827,-13918,
    -14009,-14100,-14191,-14281,-14372,-14462,-14552,-14642,-14732,-14822,-14911,-15001,-15090,-15179,-15268,-15357,
    -15446,-15534,-15623,-15711,-15799,-15887,-15975,-16063,-16150,-16238,-16325,-16412,-16499,-16586,-16672,-16759,
    -16845,-16931,-17017,-17103,-17189,-17274,-17360,-17445,-17530,-17615,-17699,-17784,-17868,-17952,-18036,-18120,
    -18204,-18287,-18371,-18454,-18537,-18620,-18702,-18785,-18867,-18949,-19031,-19113,-19194,-19276,-19357,-19438,
    -19519,-19599,-19680,-19760,-19840,-19920,-20000,-20079,-20159,-20238,-20317,-20396,-20474,-20553,-20631,-20709,
    -20787,-20864,-20942,-21019,-21096,-21173,-21249,-21326,-21402,-21478,-21554,-21629,-21705,-21780,-21855,-21930,
    -22004,-22079,-22153,-22227,-22301,-22374,-22448,-22521,-22594,-22666,-22739,-22811,-22883,-22955,-23027,-23098,
    -23169,-23240,-23311,-23382,-23452,-23522,-23592,-23661,-23731,-23800,-23869,-23938,-24006,-24075,-24143,-24211,
    -24278,-24346,-24413,-24480,-24546,-24613,-24679,-24745,-24811,-24877,-24942,-25007,-25072,-25136,-25201,-25265,
    -25329,-25392,-25456,-25519,-25582,-25645,-25707,-25769,-25831,-25893,-25954,-26016,-26077,-26137,-26198,-26258,
    -26318,-26378,-26437,-26497,-26556,-26615,-26673,-26731,-26789,-26847,-26905,-26962,-27019,-27076,-27132,-27188,
    -27244,-27300,-27355,-27411,-27466,-27520,-27575,-27629,-27683,-27736,-27790,-27843,-27896,-27948,-28001,-28053,
    -28105,-28156,-28208,-28259,-28309,-28360,-28410,-28460,-28510,-28559,-28608,-28657,-28706,-28754,-28802,-28850,
    -28897,-28945,-28992,-29038,-29085,-29131,-29177,-29222,-29268,-29313,-29358,-29402,-29446,-29490,-29534,-29577,
    -29621,-29663,-29706,-29748,-29790,-29832,-29873,-29915,-29955,-29996,-30036,-30076,-30116,-30156,-30195,-30234,
    -30272,-30311,-30349,-30386,-30424,-30461,-30498,-30535,-30571,-30607,-30643,-30678,-30713,-30748,-30783,-30817,
    -30851,-30885,-30918,-30951,-30984,-31017,-31049,-31081,-31113,-31144,-31175,-31206,-31236,-31267,-31297,-31326,
    -31356,-31385,-31413,-31442,-31470,-31498,-31525,-31553,-31580,-31606,-31633,-31659,-31684,-31710,-31735,-31760,
    -31785,-31809,-31833,-31856,-31880,-31903,-31926,-31948,-31970,-31992,-32014,-32035,-32056,-32077,-32097,-32117,
    -32137,-32156,-32176,-32194,-32213,-32231,-32249,-32267,-32284,-32301,-32318,-32334,-32350,-32366,-32382,-32397,
    -32412,-32426,-32441,-32455,-32468,-32482,-32495,-32508,-32520,-32532,-32544,-32556,-32567,-32578,-32588,-32599,
    -32609,-32618,-32628,-32637,-32646,-32654,-32662,-32670,-32678,-32685,-32692,-32699,-32705,-32711,-32717,-32722,
    -32727,-32732,-32736,-32740,-32744,-32748,-32751,-32754,-32757,-32759,-32761,-32763,-32764,-32765,-32766,-32766,
    -32767,-32766,-32766,-32765,-32764,-32763,-32761,-32759,-32757,-32754,-32751,-32748,-32744,-32740,-32736,-32732,
    -32727,-32722,-32717,-32711,-32705,-32699,-32692,-32685,-32678,-32670,-32662,-32654,-32646,-32637,-32628,-32618,
    -32609,-32599,-32588,-32578,-32567,-32556,-32544,-32532,-32520,-32508,-32495,-32482,-32468,-32455,-32441,-32426,
    -32412,-32397,-32382,-32366,-32350,-32334,-32318,-32301,-32284,-32267,-32249,-32231,-32213,-32194,-32176,-32156,
    -32137,-32117,-32097,-32077,-32056,-32035,-32014,-31992,-31970,-31948,-31926,-31903,-31880,-31856,-31833,-31809,
    -31785,-31760,-31735,-31710,-31684,-31659,-31633,-31606,-31580,-31553,-31525,-31498,-31470,-31442,-31413,-31385,
    -31356,-31326,-31297,-31267,-31236,-31206,-31175,-31144,-31113,-31081,-31049,-31017,-30984,-30951,-30918,-30885,
    -30851,-30817,-30783,-30748,-30713,-30678,-30643,-30607,-30571,-30535,-30498,-30461,-30424,-30386,-30349,-30311,
    -30272,-30234,-30195,-30156,-30116,-30076,-30036,-29996,-29955,-29915,-29873,-29832,-29790,-29748,-29706,-29663,
    -29621,-29577,-29534,-29490,-29446,-29402,-29358,-29313,-29268,-29222,-29177,-29131,-29085,-29038,-28992,-28945,
    -28897,-28850,-28802,-28754,-28706,-28657,-28608,-28559,-28510,-28460,-28410,-28360,-28309,-28259,-28208,-28156,
    -28105,-28053,-28001,-27948,-27896,-27843,-27790,-27736,-27683,-27629,-27575,-27520,-27466,-27411,-27355,-27300,
    -27244,-27188,-27132,-27076,-27019,-26962,-26905,-26847,-26789,-26731,-26673,-26615,-26556,-26497,-26437,-26378,
    -26318,-26258,-26198,-26137,-26077,-26016,-25954,-25893,-25831,-25769,-25707,-25645,-25582,-25519,-25456,-25392,
    -25329,-25265,-25201,-25136,-25072,-25007,-24942,-24877,-24811,-24745,-24679,-24613,-24546,-24480,-24413,-24346,
    -24278,-24211,-24143,-24075,-24006,-23938,-23869,-23800,-23731,-23661,-23592,-23522,-23452,-23382,-23311,-23240,
    -23169,-23098,-23027,-22955,-22883,-22811,-22739,-22666,-22594,-22521,-22448,-22374,-22301,-22227,-22153,-22079,
    -22004,-21930,-21855,-21780,-21705,-21629,-21554,-21478,-21402,-21326,-21249,-21173,-21096,-21019,-20942,-20864,
    -20787,-20709,-20631,-20553,-20474,-20396,-20317,-20238,-20159,-20079,-20000,-19920,-19840,-19760,-19680,-19599,
    -19519,-19438,-19357,-19276,-19194,-19113,-19031,-18949,-18867,-18785,-18702,-18620,-18537,-18454,-18371,-18287,
    -18204,-18120,-18036,-17952,-17868,-17784,-17699,-17615,-17530,-17445,-17360,-17274,-17189,-17103,-17017,-16931,
    -16845,-16759,-16672,-16586,-16499,-16412,-16325,-16238,-16150,-16063,-15975,-15887,-15799,-15711,-15623,-15534,
    -15446,-15357,-15268,-15179,-15090,-15001,-14911,-14822,-14732,-14642,-14552,-14462,-14372,-14281,-14191,-14100,
    -14009,-13918,-13827,-13736,-13645,-13553,-13462,-13370,-13278,-13186,-13094,-13002,-12909,-12817,-12724,-12632,
    -12539,-12446,-12353,-12260,-12166,-12073,-11980,-11886,-11792,-11698,-11604,-11510,-11416,-11322,-11227,-11133,
    -11038,-10944,-10849,-10754,-10659,-10564,-10469,-10373,-10278,-10182,-10087,-9991,-9895,-9799,-9703,-9607,
    -9511,-9415,-9319,-9222,-9126,-9029,-8932,-8836,-8739,-8642,-8545,-8448,-8351,-8253,-8156,-8059,
    -7961,-7864,-7766,-7668,-7571,-7473,-7375,-7277,-7179,-7081,-6982,-6884,-6786,-6688,-6589,-6491,
    -6392,-6293,-6195,-6096,-5997,-5898,-5799,-5700,-5601,-5502,-5403,-5304,-5205,-5106,-5006,-4907,
    -4807,-4708,-4608,-4509,-4409,-4310,-4210,-4110,-4011,-3911,-3811,-3711,-3611,-3511,-3411,-3311,
    -3211,-3111,-3011,-2911,-2811,-2711,-2610,-2510,-2410,-2310,-2209,-2109,-2009,-1908,-1808,-1708,
    -1607,-1507,-1406,-1306,-1206,-1105,-1005,-904,-804,-703,-603,-502,-402,-301,-201,-100,
    };

    post edited by JanJansen - 2017/07/20 04:09:00
    #10
    MBedder
    Circuit breaker
    • Total Posts : 6244
    • Reward points : 0
    • Joined: 2008/05/30 11:24:01
    • Location: Zelenograd, Russia
    • Status: offline
    Re: I found a bug in XC16 ? 2017/07/20 04:34:03 (permalink)
    +4 (4)
    Try washing your ears then LoL
    #11
    Gort2015
    Klaatu Barada Nikto
    • Total Posts : 1035
    • Reward points : 0
    • Joined: 2015/04/30 10:49:57
    • Location: 0
    • Status: online
    Re: I found a bug in XC16 ? 2017/07/20 04:59:59 (permalink)
    +1 (1)
    Funny LoL: LoL
     
    Compilers are tested to destruction unlike the MPLab X editor.
    The code goes back decades.
     
    A bad workman will always blame his tools.

    MPLab X playing up, bug in your code? Nevermind, Star Trek:Discovery will be with us soon.
    https://www.youtube.com/watch?v=Iu1qa8N2ID0
    + ST:Continues, "What Ships are Made for", Q's back.
    #12
    Gort2015
    Klaatu Barada Nikto
    • Total Posts : 1035
    • Reward points : 0
    • Joined: 2015/04/30 10:49:57
    • Location: 0
    • Status: online
    Re: I found a bug in XC16 ? 2017/07/20 05:05:44 (permalink)
    0
    You never said what the bug was.
     
    You need to prove it.

    MPLab X playing up, bug in your code? Nevermind, Star Trek:Discovery will be with us soon.
    https://www.youtube.com/watch?v=Iu1qa8N2ID0
    + ST:Continues, "What Ships are Made for", Q's back.
    #13
    rodims
    Super Member
    • Total Posts : 816
    • Reward points : 0
    • Joined: 2009/02/10 11:08:59
    • Location: 51.9627, 7.6262
    • Status: online
    Re: I found a bug in XC16 ? 2017/07/20 05:11:40 (permalink)
    +1 (1)
    We can neither hear the sound nor see your scope. 
    This means, we cannot know what you think is ok and what is not ok.
    Before you post your .wav files, or .jpg of your osci :
     
    If you are 'playing' your sawlut array, you would have to post the contents of the good and the bad one, so it is possible to see the difference AND especially what you think is wrong.
     
    To speak with qhb, the probability is extremely low that it is a compiler bug, and you probably have no idea how to post this data for us.  So effort and benefit in this case likely do not match.
    #14
    Gort2015
    Klaatu Barada Nikto
    • Total Posts : 1035
    • Reward points : 0
    • Joined: 2015/04/30 10:49:57
    • Location: 0
    • Status: online
    Re: I found a bug in XC16 ? 2017/07/20 05:13:35 (permalink)
    0
    I have never found a bug in any compiler I have used over many years.
    That includes c, c++, c#, pascal etc.
     
    Post your wave file so we can look, i.e. SoundForge.
     

    MPLab X playing up, bug in your code? Nevermind, Star Trek:Discovery will be with us soon.
    https://www.youtube.com/watch?v=Iu1qa8N2ID0
    + ST:Continues, "What Ships are Made for", Q's back.
    #15
    NKurzman
    A Guy on the Net
    • Total Posts : 14538
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: online
    Re: I found a bug in XC16 ? 2017/07/20 06:05:49 (permalink)
    +3 (3)
    Really you guys never found any compiler bugs?
    I found at least 2 in hi-tech/XC8. Plus a few minor ones that went away by moving things around.
    As far as this thread.
    Ok you think you have a compiler bug.
    You would need to provide a self contained example of the bug. Your post while well meaning would never even be reaserched. It is to vague. Compiler bugs can dissapear by moving code. So snippets of code may be fine in a different program.
    #16
    Gort2015
    Klaatu Barada Nikto
    • Total Posts : 1035
    • Reward points : 0
    • Joined: 2015/04/30 10:49:57
    • Location: 0
    • Status: online
    Re: I found a bug in XC16 ? 2017/07/20 07:18:25 (permalink)
    0
    Maybe, but is is so rare that I have forgot.

    MPLab X playing up, bug in your code? Nevermind, Star Trek:Discovery will be with us soon.
    https://www.youtube.com/watch?v=Iu1qa8N2ID0
    + ST:Continues, "What Ships are Made for", Q's back.
    #17
    1and0
    Access is Denied
    • Total Posts : 6760
    • Reward points : 0
    • Joined: 2007/05/06 12:03:20
    • Location: Harry's Gray Matter
    • Status: offline
    Re: I found a bug in XC16 ? 2017/07/20 07:28:36 (permalink)
    +3 (3)
    Gort2015
    I have never found a bug in any compiler I have used over many years.

    You just did not look hard enough. mr green: mr green
    #18
    Gort2015
    Klaatu Barada Nikto
    • Total Posts : 1035
    • Reward points : 0
    • Joined: 2015/04/30 10:49:57
    • Location: 0
    • Status: online
    Re: I found a bug in XC16 ? 2017/07/20 08:43:45 (permalink)
    0
    Mister Green (Reverend) Dead in the Dining Room with the Candlestick.

    MPLab X playing up, bug in your code? Nevermind, Star Trek:Discovery will be with us soon.
    https://www.youtube.com/watch?v=Iu1qa8N2ID0
    + ST:Continues, "What Ships are Made for", Q's back.
    #19
    JanJansen
    Super Member
    • Total Posts : 486
    • Reward points : 0
    • Joined: 2012/08/25 03:26:34
    • Location: 0
    • Status: offline
    Re: I found a bug in XC16 ? 2017/07/20 09:16:24 (permalink)
    0
    All i,m saying is the 2 codes should do the same, only they dont,
     
    i have the feeling i,m always batteling the compiler more then my own codes,
    programming aint simple, especially with these compilers, i spend alot of time for nothing just to post this topic then i need to wash my ears ?
     
    I,m not wasting any more time with this.
    post edited by JanJansen - 2017/07/20 09:18:19
    #20
    Page: 123 > Showing page 1 of 3
    Jump to:
    © 2017 APG vNext Commercial Version 4.5