Homebrew C interpreter for DS

  • Thread starter Thread starter Homebrewfan
  • Start date Start date
  • Views Views 2,291
  • Replies Replies 12

Homebrewfan

Member
Newcomer
Joined
Jul 3, 2009
Messages
8
Reaction score
0
Trophies
1
XP
16
Country
Canada
Is it possible for a C interpreter to go on a DS? There is a BASIC interpreter called Wee Basic, it works pretty good

Thanks for your comments
 
A interpreter is like a compiler but a compiler makes a file and a interpreter just runs the program using the source code.
Check out Wee Basic, Wee Basic is a BASIC interpreter for DS
 
Homebrewfan said:
A interpreter is like a compiler but a compiler makes a file and a interpreter just runs the program using the source code.
Check out Wee Basic, Wee Basic is a BASIC interpreter for DS

I know the difference, but you obviously dont. C isnt an interpretable language its meant to be compiled into assembly not to be parsed and processed like BASIC.
 
Right, C is not an interpreted language so writing a C interpreter doesn't even make sense. The closest possibility would be to port a C compiler to DSLinux, but unfortunately I don't think anyone's managed to make this work. You could probably use a text editor to edit BASIC or LUA scripts for interpretation though.
 
You're looking for a compiler and hereby a development kit. You can try the community-driven package called DevkitPro at http://devkitpro.org. This includes almost about everything yo need to get started - libnds, dswifi, libfat and maxmod for sound.

Have fun
smile.gif
 
BlazerRazor said:
You're looking for a compiler and hereby a development kit. You can try the community-driven package called DevkitPro at http://devkitpro.org. This includes almost about everything yo need to get started - libnds, dswifi, libfat and maxmod for sound.

Have fun
smile.gif

Actually he asked for a compiler who works in the DS. It is nearly imposible, because the limits of the DS, but you can actually try. Maybe a port for DSlinux is the best chance.

C is a compiled language, and old versions of the BASIC standar were interpreted, but the new ones are compiled too.
 
...wait, what's this discussion about the compiler and the interpreter?
I thought any programming language can be compiled or interpreted, it's just that for some programming languages, a single method (compiling or interpreting) is more often used than the other.
In the case of C, compiling is more often done.
 
stealthfire said:
...wait, what's this discussion about the compiler and the interpreter?
I thought any programming language can be compiled or interpreted, it's just that for some programming languages, a single method (compiling or interpreting) is more often used than the other.
In the case of C, compiling is more often done.

the languages can only compiled or only interpreted (not both). Most of the programming languages are compiled, creates binary code (C and it's derivatives always have been compiled). The interpreted are called scripting lages, because the interpreter reads the code and performs the desired action (VBScript or Cscript are examples, altought Javascript).

Compiled programs are always faster than interpreted ones, but less portable.
 

Site & Scene News

Popular threads in this forum