ROM Hack DS Programming Language

ipwndeveloper

Well-Known Member
Member
Joined
Jun 3, 2013
Messages
276
Trophies
0
Age
35
Location
San Fransisco, CA
Website
gb4iphone.x10.mx
XP
189
Country
United States
  • Like
Reactions: Foxi4

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,348
Country
United Kingdom
Depends upon what you want to do. C++ is workable on the DS but it may not have the edge as far as performance goes compared to C, however by the time that really matters to you* then you will have bigger things to worry about.

If you prefer there are considerably higher level languages than both of those, though I appreciate all languages I would be wrong to point you at anything other than lua really (most of the others are more tech demo or just for the fun of the original programmer). Lua is especially developed with http://sourceforge.net/projects/microlua/ probably being the more well developed at this point. You will not be making the next mario kart in it but graphics and text are quite possible with it (puzzle quest on the DS is more or less written in it if you want an idea of what is possible) and will allow you to get something up and running quite quickly.

Normally here I would drop a bunch of links like http://devkitpro.org/wiki/Getting_Started/devkitARM , http://dev-scene.com/NDS/Tutorials_Day_1 and http://www.coranac.com/tonc/text/toc.htm but I will hold back from making a full on linkfest for the time being.

*naturally you could write some spaghetti in either but assuming you are programming properly.
 
  • Like
Reactions: ipwndeveloper

Foxi4

Endless Trash
Global Moderator
Joined
Sep 13, 2009
Messages
30,825
Trophies
3
Location
Gaming Grotto
XP
29,851
Country
Poland
My personal preference is C, I find it simpler and it allows for more hands-on control, however it lacks some of the higher-level functionality C++ offers. It's probably best to mix-and-match depending on what you want to do, really.
 
  • Like
Reactions: Snailface

Snailface

My frothing demand for 3ds homebrew is increasing
Member
Joined
Sep 20, 2010
Messages
4,324
Trophies
2
Age
40
Location
Engine Room with Cyan, watching him learn.
XP
2,256
Which is better to program DS homebrew in? C or C++?
C++ is C with classes. If you like using functions to organize code, use C. If you prefer objects, methods, and classes, use C++. They'll both produce perfectly fine machine code. Its just two different styles.

The nice thing about C++ is that it is backward compatible with C so you can try both styles interchangeably and find out what you like.
 

ipwndeveloper

Well-Known Member
Member
Joined
Jun 3, 2013
Messages
276
Trophies
0
Age
35
Location
San Fransisco, CA
Website
gb4iphone.x10.mx
XP
189
Country
United States
slightly offtopic:
Snailface I thought I was the only one on the temp who lisened to CCR!
and also could resist posting:
both.jpg
 
  • Like
Reactions: Snailface

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Veho @ Veho: https://i.imgur.com/bG1pQld.mp4