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