[comp.sys.acorn] Assemblers

oystein@ifi.uio.no (ystein Carl Emil Hebnes) (02/05/91)

I'm using the Wingpass macro assembler. It produces good AOF code and interfces perfectly with ANSI-C (if that's what you want). You can even #include header files and use #define'd values and calculate offsets in structs, etc. I bought it through Archive magazine in England for under 50 pounds, and that's quite a bit less than the ~195 pounds Acorns assembler retails for.

You can generate modules with it if you apply a fix described in the documentation.
I don't think you can link object code with that produced by Acorn compilers other that ANSI-C, because they don't follow the Acorn Procedure Call Standard (APCS) yet, or so I've heard.

And there's one more thing to look out for: If you want to link assembly and C code and you have release 3 of the compiler, you may have to edit one of the files on the assembler disc, called "regs" or "regdefs", I think. That file contains definitions of constant names for register numbers, i.e. pc = r15. These register bindings were changed in the latest version of the APCS and the version on my Wingpass disc is the old one. The C manual lists the bindings for both the old and the new version.

Hope this may help you a bit.

 _/     _  |   _  .   _ | "There are no problems, only 8 ft thick, 20 ft high,
//\ \/ |_ -|- |_| | |/ ||  reinforced concrete walls (i.e. challenges!)
/_/ /  \_| |_ |_  | |  ||  The solution? Nuke'em or dig under them (i.e. use a
________________________|  Cray or apply a bit of lateral thinking.)"

fl@tools.uucp (Frank Lancaster) (02/07/91)

I am currently trying to finish the manual to my assembler for
the Archimedes. It can generate absolute and aof images.
If comp.binaries.acorn is created, I will post it there.

Frank Lancaster