C interpreter for DS

Discussion in 'NDS - Emulation and Homebrew' started by Homebrewfan, Dec 6, 2009.

  1. Homebrewfan
    OP

    Homebrewfan Newbie

    Newcomer
    8
    0
    Jul 3, 2009
    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
     
  2. Hatsu

    Hatsu Someone's been killing, eh?

    Banned
    2,143
    0
    Oct 19, 2009
    __________________ Warn: 50%
    Not that I know of.
     
  3. Normmatt

    Normmatt Former AKAIO Programmer

    Member
    2,142
    543
    Dec 14, 2004
    New Zealand
    Its called a Compiler and its for windows/linux, learn the basics dude.
     
  4. Homebrewfan
    OP

    Homebrewfan Newbie

    Newcomer
    8
    0
    Jul 3, 2009
    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
     
  5. Normmatt

    Normmatt Former AKAIO Programmer

    Member
    2,142
    543
    Dec 14, 2004
    New Zealand
    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.
     
  6. Homebrewfan
    OP

    Homebrewfan Newbie

    Newcomer
    8
    0
    Jul 3, 2009
    Canada
    Sorry about that, I not really smart at programming
     
  7. Hatsu

    Hatsu Someone's been killing, eh?

    Banned
    2,143
    0
    Oct 19, 2009
    __________________ Warn: 50%
    Next time, use google.
     
  8. DanTheManMS

    DanTheManMS aka Ricochet Otter

    Member
    4,329
    105
    Jun 2, 2007
    United States
    Georgia
    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.
     
  9. insanepotato

    insanepotato Advanced Member

    Newcomer
    53
    0
    Aug 1, 2009
    broady
    someone can always try to port C-Int (by memory thats what its called)
    its alomst and interpretable c

    ahahhahahaha good luck tho LOL
     
  10. BlazerRazor

    BlazerRazor GBAtemp Regular

    Member
    136
    0
    Nov 21, 2005
    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 [​IMG]
     
  11. sadak5

    sadak5 GBAtemp Fan

    Member
    421
    0
    Feb 27, 2007
    Mexico
    Mexico City
    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.
     
  12. stealthfire

    stealthfire Member

    Newcomer
    44
    0
    Nov 6, 2008
    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.
     
  13. sadak5

    sadak5 GBAtemp Fan

    Member
    421
    0
    Feb 27, 2007
    Mexico
    Mexico City
    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.