On Wed, Feb 14, 2018 at 9:03 AM, Paul Winalski <paul.winalski(a)gmail.com>
wrote:
On 2/13/18, Warner Losh <imp(a)bsdimp.com> wrote:
I don't suppose anybody has written a pdp-11
assembler to C translator...
My google fu is insufficient for the day.
Or you could write a compiler that translates PDP-11 assembler to LLVM
intermediate language. That was the technique used to port VMS to the
DEC Alpha and Intel Itanium. A lot of VMS was in VAX assembler, so
DEC's compiler group wrote a compiler that took in VAX assembler and
generated IL for the GEM back end used by all of DEC's Alpha and
Itanium compilers.
Yea, I was kinda hoping someone else had already done the translation for
basic. But it actually looks to be from v5, using the v5 calling
conventions and library routines now that I have had a chance to study it.
Warner