Converting C for KCC on TOPS20

Guy N. decguy at songdog.eskimo.com
Wed Dec 11 11:07:23 CST 2019


On Wed, 2019-12-11 at 00:25 +0000, 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 
> any knowledge of existing tools or techniques to do what I'm trying to do?

Is "objcopy --redefine-syms" any help?  Compile the code as-is to
produce object files, use nm or objdump to find all of the global
symbols, generate unique six-character names for them, and then use
objcopy to create new object files with the new names.

Or have I completely missed the point?  I'm not familiar with KCC, does
it produce object modules in a format objcopy doesn't support?

I know someone who was working on gcc support for the PDP-10, I wonder
if he's still doing that or has given up....



More information about the cctech mailing list