home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / mswindo / programm / win32 / 778 < prev    next >
Encoding:
Text File  |  1992-09-01  |  1.6 KB  |  49 lines

  1. Newsgroups: comp.os.ms-windows.programmer.win32
  2. Path: sparky!uunet!pipex!demon!edscom.demon.co.uk!kevin
  3. From: kevin@edscom.demon.co.uk (Kevin Broadey)
  4. Subject: CC switch to dump assembler code (was: Where do I get the NT manuals?)
  5. In-Reply-To: kevin@edscom.demon.co.uk's message of Tue, 1 Sep 1992 16:52:04 GMT
  6. Message-ID: <KEVIN.92Sep1174257@runningbear.edscom.demon.co.uk>
  7. Sender: kevin@edscom.demon.co.uk (Kevin Broadey)
  8. Organization: EDS-Scicon, Milton Keynes, UK
  9. References: <KEVIN.92Sep1165204@runningbear.edscom.demon.co.uk>
  10. Distribution: comp
  11. Date: Tue, 1 Sep 1992 17:42:57 GMT
  12. Lines: 35
  13.  
  14. I've just come up with an urgent requirement to get CC on a MIPS machine
  15. to dump the assembler code its produced to I can track down what *might*
  16. be a compiler bug.
  17.  
  18. My app crashes with "unexpected software exception" (0x80000002), and
  19. NTSD says "datatype misalignment" on line:-
  20.  
  21.     lw    t0,0x10(s0)
  22.  
  23. This corresponds to:-
  24.  
  25.     *pReadRights = scan->ReadRights;
  26.  
  27. where pReadRights is a function argument of type WORD32*,
  28. scan->ReadRights is WORD32, and WORD32s is defined as "typedef unsigned
  29. long WORD32").
  30.  
  31. I've established that &scan->ReadRights is *not* 4-byte aligned, and
  32. I've fixed the problem that was causing this.  The thing that's
  33. confusing me is that things like:-
  34.  
  35.     UINT    ui;
  36.     ULONG    ul;
  37.  
  38.     ui = scan->ReadRights;
  39.     ul = scan->ReadRights;
  40.  
  41. *don't* cause the problem!
  42.  
  43. Any help would be much appreciated.
  44. --
  45. Kevin Broadey <kbroadey@edscom.demon.co.uk>
  46. EDS-Scicon, Wavendon Tower, Wavendon, Milton Keynes, MK17 8LX, England.
  47. Phone: +44 908 284198 (direct) or +44 908 585858 ext 4198
  48. These opinions are mine: others available on request.
  49.