[net.micro.pc] Cross development on PC-AT XENIX->DOS

dk@sysdes.UUCP (07/26/86)

Has anyone any experience of cross-development for DOS using
XENIX? Our copy of Xenix has a `dosld' command which produces
DOS executables, but cross-compiling UNIX od (we are source licensees)
produces strange results.

Specifically: 
    compiling od.c using cc -c and then running dosld by hand
    produces a program whch analyses a binary file, but seems
    to read garbage after about 50 bytes.

    compiling od.c using cc -dos to a.out produces a program
    which only analyses the first 50 bytes of the binary file
    and then stops.

    compiling pascal using the Microsoft Xenix compiler to .o
    and then running dosld by hand produces a runnable DOS image,
    but which screws up trying to read a large binary file.

I presume cc -dos loads a DOS-specific startup routine (crt0?)
which is missed by using dosld by hand.

I also surmise that DOS needs to be told that a file is binary in 
order to prevent interpretation of its contents - am I right?

Please reply by EMail - I'll publish a summary if interest is
shown.

David Keeffe :-) :-( ..... who cares?