Article View: net.micro.pc
Article #7419Cross development on PC-AT XENIX->DOS
From: dk
Date: Fri, 25 Jul 1986 21:43
Date: Fri, 25 Jul 1986 21:43
28 lines
1551 bytes
1551 bytes
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?
Technical Details
Message-ID:
<243@sysdes.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!seismo!mcvax!ukc!reading!minster!sysdes!dkShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!mcvax!ukc!reading!minster!sysdes!dk From: dk@sysdes.UUCP Newsgroups: net.micro.pc Subject: Cross development on PC-AT XENIX->DOS Message-ID: <243@sysdes.UUCP> Date: Fri, 25-Jul-86 17:43:32 EDT Article-I.D.: sysdes.243 Posted: Fri Jul 25 17:43:32 1986 Date-Received: Sat, 26-Jul-86 06:07:19 EDT Organization: Systems Designers, Camberley, UK Lines: 28