Comments (4)
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.
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.
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.
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)
- Ternary operator executes both sides
- r581 and later failing on OS X HOT 4
- <function> is out of scope -- OS X related HOT 2
- if ( somepointer) fails
- Can't assign struct coordinates from array initializer HOT 1
- Implement coma operator in for loops
- #define within a #include file from interactive mode crashes HOT 2
- Invalid return point HOT 3
- Define macro inside a function block will crash picoc HOT 4
- Issue 192 revisited -- still broken in interactive mode. HOT 4
- Patch for /trunk/clibrary.c
- Patch suggestion
- Had very minor issue compiling on Solaris 10 spardc
- Github migration HOT 2
- Support for dirent.h
- Picoc -i on OSX gives SIGABRT
- Shift operators ignore the unsigned type HOT 1
- Variable scope not always respected
- Executions speed decreased HOT 1
- Migration to anoher project hosting site HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from picoc.