Page 1 of 1

GNU toolchain

Posted: Mon Feb 02, 2009 2:57 pm
by gilligan
When I couldn't get some macro stuff to work with WLA today I got
pretty annoyed and thought about what else I could try. I ended up
compiling binutils (2.16) for 65816. Later versions dropped
support completely, but <=2.16 will do.

The real problem is writing a linker script for the ld though. Not
only is the syntax rather cryptic, it's also probably not really
intended to be used with a layout like on the snes, i.e rom banking.

Should anyone here have experience with this though, feel free
to give me some hints... :)

Posted: Wed Feb 04, 2009 1:28 am
by gilligan
Okay I sort of got it working. I'll post more when I fixed everything
(including correct snes header etc.. )

However I guess I can already say that gas won't be the nicest
snes assembler out there. Looks like in the end I'll probably go
back to wla again ..

Posted: Wed Feb 04, 2009 5:42 am
by blargg
ca65 is pretty standard in its syntax and command-line behavior. That should be closer to binutils than wla.

Posted: Sat Mar 21, 2009 6:45 pm
by cdoty
blargg wrote:ca65 is pretty standard in its syntax and command-line behavior. That should be closer to binutils than wla.
I don't know if the ca65 macro is any better than wla. I ran into quite a few problems with it, in Frog Feast.

Posted: Sat Mar 21, 2009 7:35 pm
by blargg
Haha, I'll have to start a thread tomorrow with many examples of wla's macro insanity. Its macros don't compare to ca65's. Assembler macros should just be text replacement, so they can be used to macro-ize anyting. wla's totally fail in this regard.