GNU toolchain

This is an archive of a topic from NESdev BBS, taken in mid-October 2019 before a server upgrade.
View original topic
GNU toolchain
by on (#42714)
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... :)

by on (#42799)
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 ..

by on (#42803)
ca65 is pretty standard in its syntax and command-line behavior. That should be closer to binutils than wla.

by on (#44607)
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.

by on (#44609)
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.