C interpreter for DS

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

Dec 6, 2009

C interpreter for DS by Homebrewfan at 1:58 AM (1,297 Views / 0 Likes) 12 replies

  1. Homebrewfan
    OP

    Newcomer Homebrewfan Newbie

    Joined:
    Jul 3, 2009
    Messages:
    8
    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
     
  2. Hatsu

    Banned Hatsu Someone's been killing, eh?

    Joined:
    Oct 19, 2009
    Messages:
    2,143
    Location:
    __________________ Warn: 50%
    Country:
    Australia
    Not that I know of.
     
  3. Normmatt

    Member Normmatt Former AKAIO Programmer

    Joined:
    Dec 14, 2004
    Messages:
    2,135
    Country:
    New Zealand
    Its called a Compiler and its for windows/linux, learn the basics dude.
     
  4. Homebrewfan
    OP

    Newcomer Homebrewfan Newbie

    Joined:
    Jul 3, 2009
    Messages:
    8
    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
     
  5. Normmatt

    Member Normmatt Former AKAIO Programmer

    Joined:
    Dec 14, 2004
    Messages:
    2,135
    Country:
    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

    Newcomer Homebrewfan Newbie

    Joined:
    Jul 3, 2009
    Messages:
    8
    Country:
    Canada
    Sorry about that, I not really smart at programming
     
  7. Hatsu

    Banned Hatsu Someone's been killing, eh?

    Joined:
    Oct 19, 2009
    Messages:
    2,143
    Location:
    __________________ Warn: 50%
    Country:
    Australia
    Next time, use google.
     
  8. DanTheManMS

    Member DanTheManMS aka Ricochet Otter

    Joined:
    Jun 2, 2007
    Messages:
    4,325
    Location:
    Georgia
    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.
     
  9. insanepotato

    Newcomer insanepotato Advanced Member

    Joined:
    Aug 1, 2009
    Messages:
    53
    Location:
    broady
    Country:
    Australia
    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

    Member BlazerRazor GBAtemp Regular

    Joined:
    Nov 21, 2005
    Messages:
    136
    Country:
    Denmark
    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

    Member sadak5 GBAtemp Fan

    Joined:
    Feb 27, 2007
    Messages:
    421
    Location:
    Mexico City
    Country:
    Mexico
    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

    Newcomer stealthfire Member

    Joined:
    Nov 6, 2008
    Messages:
    44
    Country:
    Singapore
    ...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

    Member sadak5 GBAtemp Fan

    Joined:
    Feb 27, 2007
    Messages:
    421
    Location:
    Mexico City
    Country:
    Mexico
    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.
     

Share This Page