home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / msdos / programm / 11650 < prev    next >
Encoding:
Text File  |  1992-12-27  |  1.8 KB  |  46 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!spool.mu.edu!sdd.hp.com!hp-cv!hp-pcd!news1.boi.hp.com!verghese
  3. From: verghese@boi.hp.com (Phil Verghese)
  4. Subject: BC 3.1 Overlays and Debugging
  5. Sender: news@boi.hp.com (News Server Project)
  6. Message-ID: <Bzy85M.7Hr@boi.hp.com>
  7. Date: Mon, 28 Dec 1992 02:56:09 GMT
  8. Organization: Hewlett-Packard
  9. Lines: 35
  10.  
  11. I've recently converted my application to using overlays, and they are
  12. working great!  I'm having problems creating a debugging version of my code.
  13.  
  14. Here's a summary of what's going on.  My BCC options are:
  15. -2 -c -B -d -H -ml -M -Vs -w -Y -Z [plus a few -w???s]
  16.  
  17. The -B, -Y and -Vs were suggested by my GUI library vendor (Zinc).  I
  18. don't understand why I need the -B.  It seems to be causing me
  19. problems when it comes to making the debug version of my code -- more
  20. details follow.
  21.  
  22. My TLINK options are:
  23. /c /s /A=16
  24.  
  25. I build the whole app w/o debugging code (400K .EXE).  I delete the
  26. three .OBJs that I want to debug, and rebuild by adding -v to the BCC
  27. line and /v to the TLINK line.  I get an "Out of memory" error from
  28. TASM (which was started with the -B).  
  29.  
  30. OK, so I try it without the -B, and everything compiles, but the
  31. linker gives 3 "No stub for fixup" warnings.  It gives this warning
  32. twice for one of the modules I want to debug, and once for another.
  33.  
  34. What does the -B have to do with it?  There's not a whole lot of
  35. documentation on what it does, just that it calls the assembler for
  36. inline assembly.  Well there IS NO INLINE ASSEMBLY in my code!
  37.  
  38. I just got my program compiling in debug mode by using -ETASMX
  39. -Tkh20000 to tell it to use the EMS version of TASM with extra room
  40. for symbols.  So I've got a work-around, but I need to understand what
  41. -B is doing.  Any help would be greatly appreciated.
  42.  
  43.             Phil
  44.  
  45.  
  46.