Re: Converting C for KCC on TOPS20

2019-12-11 Thread Guy Sotomayor Jr via cctalk
I think the challenge will be does binutils (where nm, objcopy and objdump live) support for the object file format used by TOPS20. I haven’t looked at the TOPS20 object file format but it seems like the best approach would be to have the C compiler generate symbols as it normally would and wri

Re: Converting C for KCC on TOPS20

2019-12-11 Thread Phil Budne via cctalk
> KCC is mostly ANSI compliant, but it needs to use the TOPS20 linker, which > has a limit of six case-insentive characters. LINK has support for long (up to 72 character) symbols, and it appears FORTRAN v11 can generate them, but the MACRO assembler may never have gotten support; http://pdp-10.

Re: Converting C for KCC on TOPS20

2019-12-11 Thread Guy N. via cctalk
On Wed, 2019-12-11 at 00:25 +, David Griffith via cctalk wrote: > I'm trying to convert some C code[1] so it'll compile on TOPS20 with KCC. > KCC is mostly ANSI compliant, but it needs to use the TOPS20 linker, which > has a limit of six case-insentive characters. [...] Does anyone here have

Re: Converting C for KCC on TOPS20

2019-12-10 Thread Warner Losh via cctalk
On Tue, Dec 10, 2019 at 5:53 PM Sean Conner via cctalk < cctalk@classiccmp.org> wrote: > It was thus said that the Great David Griffith via cctalk once stated: > > > > I'm trying to convert some C code[1] so it'll compile on TOPS20 with > KCC. > > KCC is mostly ANSI compliant, but it needs to use

Re: Converting C for KCC on TOPS20

2019-12-10 Thread Sean Conner via cctalk
It was thus said that the Great David Griffith via cctalk once stated: > > I'm trying to convert some C code[1] so it'll compile on TOPS20 with KCC. > KCC is mostly ANSI compliant, but it needs to use the TOPS20 linker, which > has a limit of six case-insentive characters. Adam Thornton wrote a

Re: Converting C for KCC on TOPS20

2019-12-10 Thread Warner Losh via cctalk
any chance you can post-process the .obj files? Warner On Tue, Dec 10, 2019 at 5:26 PM David Griffith via cctalk < cctalk@classiccmp.org> wrote: > > I'm trying to convert some C code[1] so it'll compile on TOPS20 with KCC. > KCC is mostly ANSI compliant, but it needs to use the TOPS20 linker, w

Converting C for KCC on TOPS20

2019-12-10 Thread David Griffith via cctalk
I'm trying to convert some C code[1] so it'll compile on TOPS20 with KCC. KCC is mostly ANSI compliant, but it needs to use the TOPS20 linker, which has a limit of six case-insentive characters. Adam Thornton wrote a Perl script[2] that successfully does this for Frotz 2.32. The Frotz codeb