home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / msdos / programm / 12525 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  2.4 KB

  1. Path: sparky!uunet!ogicse!mimbres.cs.unm.edu!moe.ksu.ksu.edu!usenet-feed.umr.edu!mcastle
  2. From: mcastle@cs.umr.edu (Michael R Castle)
  3. Newsgroups: comp.os.msdos.programmer
  4. Subject: Re: WANTED:  GCC aout -> exe
  5. Message-ID: <1993Jan27.111854.14481@umr.edu>
  6. Date: 27 Jan 93 11:18:54 GMT
  7. Article-I.D.: umr.1993Jan27.111854.14481
  8. References: <EMORENO.93Jan24213512@scheria.NMSU.Edu> <books.206.0@fsunuc.physics.fsu.edu> <EMORENO.93Jan26140004@scheria.NMSU.Edu>
  9. Sender: cnews@umr.edu (UMR Usenet News Post)
  10. Organization: University of Missouri - Rolla, Rolla, MO
  11. Lines: 48
  12. Nntp-Posting-Host: next9.cs.umr.edu
  13.  
  14. In article <EMORENO.93Jan26140004@scheria.NMSU.Edu> emoreno@scheria.NMSU.Edu (Elena M. Castruita) writes:
  15. >
  16. >    Thanks to all who replied about FSF's aout2exe.  I already
  17. >have that.  What I wanted is something that creates an exe file ( out of
  18. >a GCC aout format file ) that DOES NOT use go32.  aout2exe prepends a
  19. >call to go32 to the aout file.  In order to run program hello.exe
  20. >(compiled on machine X) on machine Y, I would need to install go32 on
  21. >machine Y.  That is something I want to avoid if at all possible.  
  22. >
  23. >    Anyone know of anything that will do what I want?
  24.  
  25. Do this then:
  26.  
  27. copy /b go32.exe+a.out new.exe
  28.  
  29. use filenames as appropriate.
  30.  
  31. Some notes:
  32.  
  33. This will be slower than using (the supplied) aout2exe.  aout2exe aligns
  34. the appended a.out file on a 4k boundary, which makes for about a 10-25%
  35. increase in paging speed (go32, when it needs to page out something, if 
  36. the victim page is code, it is just discarded and read back in later 
  37. from the a.out file).
  38.  
  39. This method, if you have several go32 binaries, will eat up a LOT more
  40. disk space. (go32=50430 bytes, stub=6572 bytes)
  41.  
  42.  
  43. You can solve the first problem by recompiling aout2exe.  There is a
  44. program someone in the djgpp distribution that filters a binary file
  45. and makes it into a .h file that is all hex.  Usually it's run one 
  46. stub.exe, and aout2exe is built containing all of stub.exe internally.
  47. You should just as easily just use go32.exe instead of stub.  This will
  48. both prepend go32 and page align it for faster execution.
  49.  
  50.  
  51.  
  52. remember, you HAVE to have go32 somewhere in order to run the a.out style
  53. files.   
  54.  
  55. mrc
  56.  
  57. -- 
  58. Mike Castle .-=NEXUS=-.  Life is like a clock:  You can work constantly
  59.   mcastle@cs.umr.edu     and be right all the time, or not work at all
  60. S087891@UMRVMA.UMR.EDU   and be right at least twice a day.  -- mrc
  61.     We are all of us living in the shadow of Manhattan.  -- Watchmen
  62.