home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 1 / 1266 / README < prev    next >
Encoding:
Text File  |  1990-12-28  |  2.3 KB  |  62 lines

  1.  
  2. Here is the basic run-time support for people who want to run Xenix GCC
  3. without the Microsoft Library.  If you don't know what all this means,
  4. you probably don't want this file right now, but please save it anyway for
  5. further use if you use Xenix GCC :-)
  6.  
  7. makesseg.c    / Program to generate minimal segment ordering object file.
  8. Sseg.uu        / UUencoded output from makesseg
  9. Scrt0.s        / C runtime start-off.
  10. start.c        / Continued from Scrt0.s
  11. exit.c        / Dummy for use when no stdio library is in sight.
  12. echo.c        / Demonstration program.  Doesn't implement -n or \ escapes.
  13. hack.S        / Needed to complete the link of the above.  Mainly syscalls.
  14.  
  15. These were mostly written by Steve B. except for the system calls which
  16. were abstracted from an earlier comp.unix.xenix posting.  I wrote this
  17. bit of prose and threw the kit together.
  18.  
  19. To run demonstration module:
  20.     1) EITHER
  21.         $ HERE=`pwd`
  22.         $ cp makesseg.c <your Xenix-patched GAS directory>
  23.         $ cd <that GAS directory>
  24.         $ gcc makesseg.c xenixomf.o
  25.         $ ./a.out
  26.         $ mv Sseg.o $HERE
  27.         $ cd $HERE
  28.        OR
  29.         $ uudecode < Sseg.uu
  30.  
  31.     2)
  32.         $ gcc -nostdlib Sseg.o Scrt0.s start.c echo.c hack.S exit.c
  33.  
  34. ./a.out should now be an executable image which contains no Microsoft library
  35. cruft at all.
  36.  
  37. A couple of extra files:
  38.  
  39. ftol.s        / called by CC compiled gnulib, hopefully Microsoft compatible
  40.         / but should be faster.
  41. altlib.sh    / How to generate gnulib without CC at all, just using GCC
  42.  
  43. You know how anything that's free comes with no warranty?  Well, these come
  44. with even less.  This distribution is intended for Dedicated Hackers Only.
  45.  
  46. Sseg.o Scrt0.o could be moved to /usr/local/lib/gcc-{Sseg.o,Scrt0.o} for
  47. permanent use (Then DO NOT metion -nostdlib on the gcc control card)
  48. and start.o should be in your /usr/local/lib/gcc-Slibc.a along with the
  49. rest of your libc.
  50.  
  51. Various bits of libc can be found in the comp.sources.unix archive and the
  52. BSD 4.3-tahoe free'd software tape.  I have also successfully run the
  53. xercise test of Earl Chew <cechew@bruce.OZ> 's stdio library which was
  54. posted to comp.os.minix (though I think I had to reverse the definitions
  55. of __STDIO_VA_LIST__ and __STDIO_VA__ and #undef _SIZE_T to make it work).
  56.  
  57. Another possible stdio candidate is the one posted recently to alt.sources
  58. by Steve Summit <scs@adam.mit.edu>.
  59.  
  60. I've also thrown together a ctype package, If anyone wants it, mail me
  61. and I'll post it if I get fed up of mailing it out.
  62.