gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

ASM > Moving to ASM

#38520 - QuantumDoja - Mon Mar 28, 2005 9:48 pm

Hi, I can code c and compile with dev kit, i can write a little ASM....but i do not know what to compile with...please help.

Chris
_________________
Chris Davis

#38522 - QuantumDoja - Mon Mar 28, 2005 10:01 pm

Hi, Found It!!! www.goldroad.co.uk is the asm assembler im going to use, easy to use too
_________________
Chris Davis

#38534 - DekuTree64 - Mon Mar 28, 2005 11:10 pm

You can build pure assembly files with GCC too. Just change the file's extension to .s (or .S to run the C preprocessor on it first) and call gcc on it like you do for C files. That will build it into a .o, which can be linked with C/C++ code. Very useful for larger projects.
_________________
___________
The best optimization is to do nothing at all.
Therefore a fully optimized program doesn't exist.
-Deku

#38929 - SmileyDude - Sat Apr 02, 2005 3:10 am

I highly recommend the gcc route as well -- gcc is available on all platforms, and insures that whoever you give your source code to that they will be able to compile it.

Personally, I feel that not locking yourself into a development platform is a good thing -- it's one thing to want to write code for the GBA. It's another thing to write it in such a way that you can only build it using Windows (or Linux or Mac OS X etc, etc, etc...). That's why I advocate using tools like gcc, make, and other tools where the source is available.

Good luck!
_________________
dennis

#53441 - Mascot - Thu Sep 08, 2005 1:27 pm

the best choice is armasm, in bin folder of ads1.2

#53442 - headspin - Thu Sep 08, 2005 1:44 pm

Don't forget to read GBAGuy's ASM tutes if you need a refresher or basic intro into ARM ASM.
_________________
Warhawk DS | Manic Miner: The Lost Levels | The Detective Game