home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / palmtops / 4297 < prev    next >
Encoding:
Text File  |  1993-01-08  |  2.8 KB  |  73 lines

  1. Newsgroups: comp.sys.palmtops
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!bogus.sura.net!howland.reston.ans.net!usc!cs.utexas.edu!oakhill!toms
  3. From: toms@oakhill.sps.mot.com (Thomas Spohrer)
  4. Subject: Turbo C compiler for EXMs on the 95LX
  5. Message-ID: <1993Jan7.222205.21480@oakhill.sps.mot.com>
  6. Organization: Motorola Inc., Austin, Texas
  7. Distribution: na
  8. Date: Thu, 7 Jan 1993 22:22:05 GMT
  9. Lines: 62
  10.  
  11. I have been successful in creating sysmgr complient .EXMs using Turbo C with
  12. an old version of MS Link.  What works for me is to compile with Turbo C
  13. (Actually TC++ Second Addition), link with Microsoft's linker using the
  14. HP/Lotus crt0.obj, and then run E2M (ver 4.2).
  15.  
  16. I would like to be able to use tlink instead, however, because my old MS linker
  17. (ver 3.05) does not see all of TCs library.  To get it to see some of the
  18. functions I have to extract them from the big library (cs.lib) and put them
  19. into my own smaller library.
  20.  
  21. Now for my problem/question:
  22.     .EXEs that have been linked by tlink almost always give me the
  23. following error when I run E2M:
  24.  
  25.         ERROR - Map File DGROUP is not paragraph aligned
  26.  
  27. How do I force paragraph alignment for the DGROUP?
  28.  
  29. How come the same program using the same library and startup routines give me
  30. such different maps when using different linkers?  Below is a summary of the
  31. map file created by MS link for my program:
  32.  
  33.  Start  Stop   Length Name                   Class
  34.  00000H 00866H 00867H _TEXT                  CODE
  35.  00868H 00C9BH 00434H _DATA                  DATA
  36.  00C9CH 00F49H 002AEH _BSS                   BSS
  37.  00F50H 0174FH 00800H STACK                  STACK
  38.  
  39.  Origin   Group
  40.  0086:0   DGROUP
  41.  
  42. Program entry point at 0000:0010
  43.  
  44. Now the map file from tlink (using the same .obj files):
  45.  
  46.  Start  Stop   Length Name               Class
  47.  
  48.  00000H 00857H 00858H _TEXT              CODE
  49.  00858H 00C8BH 00434H _DATA              DATA
  50.  00C8CH 00F39H 002AEH _BSS               BSS
  51.  00F48H 01747H 00800H STACK              STACK
  52.  
  53. [** Symbol table lines removed here **]
  54. Program entry point at 0000:0000
  55.  
  56. The program entry point is not even the same for the same code!
  57.  
  58. Does Craig Finseth's makeexm work any better?  I can not try it because
  59. it must require that you use his c0s and I can not assemble his source. 
  60. Would someone with tasm please send me a c0s.obj assembled with Craig's
  61. c0s.asm.
  62.  
  63. Enough rambling on from me for now.  I have not seen any discussion on 
  64. creating .EXMs here in a while.  Please pass along any pertinent information
  65. about this process if you have any.
  66.  
  67.  
  68. -- 
  69. ===========================================================================
  70. Thomas Spohrer    UUCP: {harvard,utah-cs,gatech}!cs.utexas.edu!oakhill!toms
  71.                              or try:   toms@vitus.sps.mot.com
  72. ===========================================================================
  73.