[Simh] PDP-11 linux cross-assembler

Tim Newsham tim.newsham at gmail.com
Thu Jul 19 16:03:57 EDT 2012


You could always use one of the research unix assemblers.  If you
use Warren Toomey's "Apout" tool you can run them directly
from the command line in any modern unix.  For example we used
it to build the 1st ed unix kernel with it:

http://code.google.com/p/unix-jun72/source/browse/trunk/build/Makefile

see http://code.google.com/p/unix-jun72/source/browse/trunk/tools/apout/README

The unix assemblers output machine code with a very small and simple
header on the front of it.  It would be very easy to write a program to
parse the header, extract the bytes you want and spit out data
suitable for loading.  Or you can just leave the header on, since it's
executable.

On Thu, Jul 19, 2012 at 3:14 AM, Jordi Guillaumes i Pons
<jg at jordi.guillaumes.name> wrote:
> Hello,
>
> I'm looking for a PDP-11 cross-assembler executable under linux/unix. I
> tried to generate a pdp11 target for gnu gas, but although the assembler
> seems to work, the linker does not understand the resulting object and
> aborts.
>
> My "need" (to speak about "needing" something in a hobbyist environment is
> always relative) is to be able to generate binary/absolute PDP11 machine
> code to be directly loaded in the simh simulator via the "load" command. A C
> cross-compiler would also be nice to have, but at this moment I'm focused in
> assembly code.
>
> Do you know about the existance of such a beast?
>
> (If there is no unix cross-compiler, my preferences would be, in order, VMS
> and Windows)
>
>
> _______________________________________________
> Simh mailing list
> Simh at trailing-edge.com
> http://mailman.trailing-edge.com/mailman/listinfo/simh



-- 
Tim Newsham | www.thenewsh.com/~newsham | thenewsh.blogspot.com



More information about the Simh mailing list