Giter VIP home page Giter VIP logo

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 19, 2024
This seems to work fine on the current SVN version. 

Will recheck on SRV-1.

Original comment by [email protected] on 4 Oct 2009 at 2:42

  • Changed state: Started

from picoc.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 19, 2024
Thanks for looking into this.

Another test result:

Perhaps there is a memory usage problem: one thing stepping on another?

CC##Xmodem success. Count: 768

void PDQ(int v, int d, int h)
{
        printf("%d, %d, %d\r\n", v, d, h);
}

int u;

PDQ(0,       0,     0x0);

u=15;
PDQ(u,      15,    0x0F);
PDQ(u+1,    16,    0x10);

u=u*2+1;
PDQ(u,      31,    0x1F);
PDQ(u+1,    32,    0x20);

u=16*16-1;
PDQ(u,     255,   0xFF);
PDQ(u+1,   256,   0x100);

u=u*2+1;
PDQ(u,     511,   0x1FF);
PDQ(u+1,   512,   0x200);

u=16*16*16-1;
PDQ(u,    4095,  0xFFF);
PDQ(u+1,  4096,  0x1000);

u=u*2+1;
PDQ(u,    8191,  0x1FFF);
PDQ(u+1,  8192,  0x2000);

u=u*2+1;
PDQ(u,   16383,  0x3FFF);
PDQ(u+1, 16384,  0x4000);

u=u*2+1;
PDQ(u,   32767,  0x7FFF);
PDQ(u+1, 32768,  0x8000);

u=u*2+1;
PDQ(u,   65535,  0xFFFF);
PDQ(u+1, 65536, 0x10000);

exit();

=====================
                     0, 0, 0
15, 15, 15
16, 16, 16
31, 31, 31
32, 32, 32
255, 255, 255
256, 2556160, 2556160
511, 2556415, 2556415
         ^
          JáÀ
             á2S•'á2: 'ÿ÷ÿïÿÿÿÿÿÿÿÿ¿ûÿÿÿÿÿÿþÿ?ýïÿßÿÿßÿÿÿ÷ÿÿÿÿÿÿÿþ÷ÿÿÿ¿ÿÿÿïÿÿûÿÿß
ÿûÿÿÿÿÿûýÿ½ïÿÿþÿÿÿÿÿþÿÿÿÿßÿÿÿÿÿÿÿÿÿÿý¿ÿÿ
ÿ¿ÿÿ~ßÿÿÿÿÿÿÿ÷û¿û÷Ëÿÿÿûÿßþÿÿÿßÿßÿÿûÿ÷ÿÿÿ
ÿÿÿýßÿÿÿÿþýÿÿÿÿÿÿÿÿÿÿÿ¯ÿÿÿëÿÿÿûÿßÿÿÿÿÿÿÿ
ÿÿÿßÿÿÿÿÿßûýÿÿÿÿÿÿÿïÿÿÿÿýýÿÿÿÿÿÿÿwÿÿÿÿÿï
ßÿÿÿÿÿÿÿÿßÿÿýÿÿÿÿÿÿÿß÷ÿÿÿÿÿÿÿÿÿÿ÷ÿýÿÿÿßÿ
ÿÿÿÿÿÿû÷ßÿÿÿûÿÿÿ¿wÿÿÿÿÿÿ÷ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
ÿßÿÿÿÿÿýÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿßÿ÷ýÿÿß¿ÿÿÿÿÿÿÿÿÿ
ÿÿÿÿÿþÿïïÿ_ýÿßÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ¿ÿÿ
ÿÿÿÿÿÿÿÿÿÿÿßÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿþÿÿÿÿÿÿÿÿ»ÿÿÿ
¿ÿ÷ÿ÷ûÿßßÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ÷ÿïÿÿÿÿÿÿÿÿÿ
¿ÿþÿþÿÿÿÿÿÿ?ýïÿßÿÿÿßÿÿÿ÷ÿÿÿÿÿÿÿþÿÿÿÿ¿ÿÿÿ�
�ÿÿûÿÿÿ{ÿÿÿÿÿÿÿýïÿÿÿþÿÿÿÿÿþÿÿÿÿßÿÿÿÿÿÿÿÿ
ÿÿÿý¿ÿÿÿ¿ÿÿÿÿÿÿÿÿÿÿû÷Ûÿÿýÿ÷ûÿßÿÿ÷ßÿßÿÿÿÿ
ÿÿÿÿÿÿÿýÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿïÿÿÿëÿÿÿÿ}û÷ÿÿßÿ
ÿÿÿÿÿÿÿÿÿÿßÿÿÿÿÿýÿ÷ÿÿÿÿÿÿÿÿïýÿÿÿÿÿÿïwÿÿÿ�
�ÿÿÿÿÿ¿ÿÿÿÿ is undefined
                                                                leaving picoC

Original comment by [email protected] on 4 Oct 2009 at 10:45

from picoc.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 19, 2024
Hi, Howard has recent found a problem with the memcpy() function on the SRV-1.
Updating to his new memcpy() may solve your memory corruption problem. I'd be
interested to know if you have any success with this.

Original comment by [email protected] on 30 Oct 2009 at 7:48

from picoc.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 19, 2024
Calling this one closed unless I hear otherwise.

Original comment by [email protected] on 1 Nov 2009 at 4:35

  • Changed state: Fixed

from picoc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.