So I am working on a proper port of picoc to the DS as my Homebrew Bounty project. I only started working on it today, though.
picoc is a C interpreter with 99% of the ANSI C standard supported. That's right, it's an interpreter.
CURRENT PORT FEATURES:
- a quick port of the picoc interactive shell
- most C standard functions supported
- DS-specific functions added (with more coming!)
HOW TO USE:
Self-explanatory, really. Just input C code into the shell.
Sometimes in interactive mode you want to change a function or redeclare a variable. You can do this using the "delete" statement:
You may want to load C files that you've prepared before. Let's assume you want to load test1.c, which is located in the main directory of your SD card. To do that, do this:
You can now use functions and code from that C file!
Works in both DS and DSi mode, and it's quite fast!
For more information please consult the README or the picoc wiki.
MILESTONES (bXX - build XX):
M1 (done at b02)
- Have it work (b01)
- Most standard C functions working (b02)
M2 (done at b04)
- Add some of the NDS-specific functions (began at b03, still in progress)
- Add loading C files (b04)
M3
Idk. Maybe integrate a text editor?
I fixed the links now
DOWNLOAD:
build 04 (20110326) - binary
build 04 (20110326) - source
picoc is a C interpreter with 99% of the ANSI C standard supported. That's right, it's an interpreter.
CURRENT PORT FEATURES:
- a quick port of the picoc interactive shell
- most C standard functions supported
- DS-specific functions added (with more coming!)
HOW TO USE:
Self-explanatory, really. Just input C code into the shell.
Code:
starting picoc v2.1
picoc> char inbuf[80];
picoc> gets(inbuf);
hello!
picoc> printf("I got: %s\n", inbuf);
I got: hello!
Sometimes in interactive mode you want to change a function or redeclare a variable. You can do this using the "delete" statement:
Code:
starting picoc v2.1
picoc> int fred = 1234;
picoc> printf("fred = %d\n", fred);
fred = 1234
picoc> delete fred;
picoc> char *fred = "hello";
picoc> printf("fred = '%s'\n", fred);
fred = 'hello'
You may want to load C files that you've prepared before. Let's assume you want to load test1.c, which is located in the main directory of your SD card. To do that, do this:
Code:
picoc> load "/test1.c";
picoc>
You can now use functions and code from that C file!
Works in both DS and DSi mode, and it's quite fast!
For more information please consult the README or the picoc wiki.
MILESTONES (bXX - build XX):
M1 (done at b02)
- Have it work (b01)
- Most standard C functions working (b02)
M2 (done at b04)
- Add some of the NDS-specific functions (began at b03, still in progress)
- Add loading C files (b04)
M3
Idk. Maybe integrate a text editor?
I fixed the links now
DOWNLOAD:
build 04 (20110326) - binary
build 04 (20110326) - source