| |
MagerValp
Registered: Dec 2001 Posts: 1078 |
Standalone assembler that accepts string defines?
I need to package up a small assembly project so that even non-coders can use it. My requirements are quite specific though, and I haven't managed to find one that matches all of:
Must be a standalone executable for Windows, Mac OS X, and Linux.
Must allow the definition of string constants on the commandline, e.g. -Dfilename="princeofp+8D.prg", which can then be used by .INCBIN filename.
So far I've tested, and rejected:
ca65: only numeric commandline defines, requires cc65 install.
acme: no commandline defines.
dasm: only numeric commandline defines.
dreamass: only numeric commandline defines.
kickassembler: string defines, but requires java.
64tass: only numeric commandline defines.
Is there anything else? |
|
| |
JackAsser
Registered: Jun 2002 Posts: 2014 |
If you find a standalone CPP (c pre processor) you can fix the define-part yourself... |
| |
Skate
Registered: Jul 2003 Posts: 494 |
princeofp+8D.prg :D |
| |
MagerValp
Registered: Dec 2001 Posts: 1078 |
Quoting JackAsserIf you find a standalone CPP (c pre processor) you can fix the define-part yourself...
Yeah, or M4, or sed, or anything really... but that's plan B :) |
| |
Ninja
Registered: Jan 2002 Posts: 411 |
The source for dreamass is available. I do accept patches, if you nag enough I'll even apply them ;) |
| |
Frantic
Registered: Mar 2003 Posts: 1648 |
The wla assembler is apparently able to accept string defines on the command line:
http://www.villehelin.com/wla.html
http://sourceforge.net/projects/wladx/
I also think (but not sure here) that you can do this with the xa assembler:
http://www.floodgap.com/retrotech/xa/ |
| |
chatGPZ
Registered: Dec 2001 Posts: 11386 |
echo "whatevercrap" > bla.inc
.include "bla.inc"
?
should work with any assembler :) |
| |
JAC
Registered: Aug 2002 Posts: 57 |
>kickassembler: string defines, but requires java.
Well, that is not a restriction for any of the mentioned target platforms. "java -jar kickass.jar" will work fine on all of them. You'll end up in more trouble with any other native executable.
|
| |
Count Zero
Registered: Jan 2003 Posts: 1932 |
@Ninja: as Berlios is closing - where will the project likely move? |
| |
chatGPZ
Registered: Dec 2001 Posts: 11386 |
Quote:"java -jar kickass.jar" will work fine on all of them.
good one :) |
| |
MagerValp
Registered: Dec 2001 Posts: 1078 |
Quoting FranticI also think (but not sure here) that you can do this with the xa assembler:
http://www.floodgap.com/retrotech/xa/
xa fits the bill perfectly, thank you! WLA also looks neat, but it seems to be very much cartridge based.
|
| |
MagerValp
Registered: Dec 2001 Posts: 1078 |
Quoting JAC>kickassembler: string defines, but requires java.
Well, that is not a restriction for any of the mentioned target platforms. "java -jar kickass.jar" will work fine on all of them. You'll end up in more trouble with any other native executable.
Java is not available out of the box on any major OS. |
| |
Slammer
Registered: Feb 2004 Posts: 416 |
It's preinstalled on osx |
| |
JAC
Registered: Aug 2002 Posts: 57 |
>http://developer.apple.com/java/faq/
How can I get Java for Mac OS X?
Every version of Mac OS X comes with Java out of the box.
That probably excludes it from "major OS" :-) Honestly: I also have the problem of running and testing my stuff one all these OSes, and even if Java is not there out of the box, it is "just a click away" and does work. I also spent a lot of time getting different compiler executables on different platform and I can confirm that it's a pain for all involved parties...
http://www.wudsn.com/downloads/compilers.zip
|
| |
Mr. SID
Registered: Jan 2003 Posts: 424 |
Not anymore, in OS X 10.7 it's an optional install now. |
| |
MagerValp
Registered: Dec 2001 Posts: 1078 |
Yep, and you need admin credentials to install it. |
| |
chatGPZ
Registered: Dec 2001 Posts: 11386 |
i never really got it to work on 64bit linux either, something always craps out :) |