完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨,上周我在XC16编程了一个DSPIC33 FJ128GP802,发现了一些奇怪的东西。我今天安装了最新的版本,这个bug还在那里。我试着把带限制的波形从ROM拷贝到RAM中。这里给出了奇怪的结果:它是固定的:我想你可以。想知道这一点。再见。
以上来自于百度翻译 以下为原文 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 |
|
相关推荐
19个回答
|
|
如果你不发布整个程序,也不要发布你所说的“奇怪的结果”,这是没有意义的。我还没有看到一个声称发现了一个真正的bug的话题。几乎总是有人不知道如何正确调试,以及如何优化工作。
以上来自于百度翻译 以下为原文 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. |
|
|
|
我不关心调试,我发现这个bug,它是我发现的第二个bug。在这个代码中,问题是,没有更多。奇怪的结果是不同的声音,然后看到波形,而代码应该做同样的事情吗?我只是想帮忙。
以上来自于百度翻译 以下为原文 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. |
|
|
|
问题在于,如果不张贴更多代码,允许任何人重现你的问题,没有人能说出最终结果是什么导致了结果的差异。没有正确的结果和错误的结果,没有人能把他的结果与你的结果相比较,也没有你的不同的结果。也就是说,不知道确切的错误是什么,没有人能避免犯同样的错误。而且,通常在这样的情况下,你无私地希望帮助改善PR。你可以为Microchip创建一张票。然后,他们还需要更多的信息来重现假设的bug,否则他们无法修复它。&编辑:例如,对于窦房表或Max Bythin的声明/定义不见了。中心表达式肯定使用不同的中间结果(由于类型和隐式铸件),这是否与您的观察无关,不可能是没有的。
以上来自于百度翻译 以下为原文 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 > |
|
|
|
嗨,你使用哪种XC16编译器版本?(最新一个是V1.31)
以上来自于百度翻译 以下为原文 Hi, Which XC16 compiler version do you use ? (latest one is v1.31) Regards |
|
|
|
|
|
|
|
对不起,这是丢失的代码。
以上来自于百度翻译 以下为原文 Sorry, here is the missing code. #define LUTSIZE_SINE 2048 #define MAXBIT_SINE ( LUTSIZE_SINE - 1 ) |
|
|
|
窦的类型和内容?如果您张贴,请使用代码标签!
以上来自于百度翻译 以下为原文 The type and content of sinus ? If you post, please use code tags ! |
|
|
|
嗨,我们不确定你提到的问题是一个编译器问题还是一个MPLAB X显示问题…可能是MPLAB X没有正确显示一个变量……你看到的问题是在MPLAB X监视窗口中吗?你能发布截图吗?当做
以上来自于百度翻译 以下为原文 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 |
|
|
|
嗨,我试着把窦源文件放到这个帖子里。我不知道,我在VisualStudio中编程代码,然后用MPLAB重新编程芯片。当芯片被编程时,我听它发出的声音,看示波器。我不知道什么是观察窗口。
以上来自于百度翻译 以下为原文 Hi, i try to attatch the sinus source file to this post. 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, }; |
|
|
|
|
|
|
|
有趣的LOL:编译器与MPLAX编辑器不同,它被破坏了。代码可以追溯到几十年。一个拙劣的工人总是会责怪他的工具。
以上来自于百度翻译 以下为原文 Funny LoL: Compilers are tested to destruction unlike the MPLab X editor. The code goes back decades. A bad workman will always blame his tools. |
|
|
|
你从来没有说过这个bug是什么,你需要证明它。
以上来自于百度翻译 以下为原文 You never said what the bug was. You need to prove it. |
|
|
|
我们既听不到声音,也看不到你的范围。这意味着,我们不能知道你认为什么是好的,什么是不好的。在你发布你的.wav文件,或者你的OSCI的JPG之前:如果你正在玩你的SAWLUT数组,你就必须把好的和坏的的内容张贴出来,这样就有可能看到差异,尤其是你所想的。错了。要用QHB说话,它的概率非常低,它是编译器错误,而且您可能不知道如何为我们发布这些数据。因此,这种情况下的努力和收益可能不匹配。
以上来自于百度翻译 以下为原文 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. |
|
|
|
我从来没有发现任何编译器,我已经使用了很多年。包括C,C++,C,Pascal等。
以上来自于百度翻译 以下为原文 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. |
|
|
|
你们真的从来没有发现过编译器错误吗?我在高科技/XC8中发现了至少2个。再加上一些小东西,它们通过移动东西而消失。就这个线程而言。好的,你认为你有一个编译器错误。您需要提供一个自包含的bug实例。你的帖子虽然善意,却永远不会得到证实。这是含糊不清的。编译器错误可以通过移动代码来消除。因此,在不同的程序中,代码片段可能很好。
以上来自于百度翻译 以下为原文 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. |
|
|
|
|
|
|
|
|
|
|
|
格林先生(牧师)死在餐厅的烛台里。
以上来自于百度翻译 以下为原文 Mister Green (Reverend) Dead in the Dining Room with the Candlestick. |
|
|
|
我所说的所有2个代码都应该做同样的事情,只有他们不这样做,我有一种感觉,我总是与编译器斗争,更多的是我自己的代码,编程不是简单的,尤其是这些编译器,我花了很多时间,只是为了发布这个主题,然后我需要洗我的耳朵?我不会再浪费时间了。
以上来自于百度翻译 以下为原文 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. |
|
|
|
只有小组成员才能发言,加入小组>>
5250 浏览 9 评论
2037 浏览 8 评论
1958 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3218 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2266 浏览 5 评论
790浏览 1评论
682浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
611浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
686浏览 0评论
584浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-29 11:00 , Processed in 1.568855 second(s), Total 114, Slave 98 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号