Homebrew C interpreter for DS

Homebrewfan

Member
OP
Newcomer
Joined
Jul 3, 2009
Messages
8
Trophies
0
XP
6
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
 

Homebrewfan

Member
OP
Newcomer
Joined
Jul 3, 2009
Messages
8
Trophies
0
XP
6
Country
Canada
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
 

Normmatt

Former AKAIO Programmer
Member
Joined
Dec 14, 2004
Messages
2,161
Trophies
1
Age
33
Website
normmatt.com
XP
2,180
Country
New Zealand
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.
 

DanTheManMS

aka Ricochet Otter
Member
Joined
Jun 2, 2007
Messages
4,453
Trophies
1
Age
34
Location
Georgia
XP
751
Country
United States
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.
 

BlazerRazor

Well-Known Member
Member
Joined
Nov 21, 2005
Messages
136
Trophies
0
XP
156
Country
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
 

sadak5

Well-Known Member
Member
Joined
Feb 27, 2007
Messages
421
Trophies
0
Age
40
Location
Mexico City
Website
Visit site
XP
169
Country
Mexico
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.
 

stealthfire

Active Member
Newcomer
Joined
Nov 6, 2008
Messages
44
Trophies
0
XP
109
Country
Senegal
...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.
 

sadak5

Well-Known Member
Member
Joined
Feb 27, 2007
Messages
421
Trophies
0
Age
40
Location
Mexico City
Website
Visit site
XP
169
Country
Mexico
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

General chit-chat
Help Users
  • No one is chatting at the moment.
    Sonic Angel Knight @ Sonic Angel Knight: :ninja: