Hi,
I'm porting a MFC application from .DSP to SOURCES. I've done the similar
porting before.
After created all DDK makefiles, I started up 'build -cZ'. the cl.exe
appears hung after compiling several files. CL.exe is taking 98% of CPU
reported by task manager.
What could be wrong? I'm out of idea-;(
Thanks,
Calvin
Calvin Guan Software Engineer
ATI Technologies Inc. www.ati.com
MFC in a driver?
Well, here’s some general steps for diagnosing compiler issues:
- Determine which source file’s compilation is causing the hang.
- Generate preprocessor output for the file in question.
- Use trial and error to determine what source code lines lead to the
hang.
- Send a reproducible test case to Microsoft support.
- Use the knowledge gleaned from #3 to massage the source code into
non-hanging form as a workaround.
Some other things to consider:
- Compiler command-line options can play a role. Try compiling with
optimizations on/off, etc.
- You could try using older or newer DDKs with different versions of the
compiler (sorry, I don’t actually know how the compiler versions have
been going with the DDKs).
Chuck
----- Original Message -----
From: “Calvin Guan”
To: “Windows System Software Devs Interest List”
Sent: Wednesday, August 18, 2004 8:03 AM
Subject: [ntdev] cl.exe hung while building
> Hi,
>
> I’m porting a MFC application from .DSP to SOURCES. I’ve done the
similar
> porting before.
>
> After created all DDK makefiles, I started up ‘build -cZ’. the cl.exe
> appears hung after compiling several files. CL.exe is taking 98% of
CPU
> reported by task manager.
>
> What could be wrong? I’m out of idea-;(
>
> Thanks,
> Calvin
> -
> Calvin Guan Software Engineer
> ATI Technologies Inc. www.ati.com
As I stated, it was an MFC UM app.
Actually, I’ve just found out which CPP files it’s hanging on. It’s a big
file with a lot of stuff I don’t quite understand.
I’ve captured the compiler options in the log file.
Not forget to mention that the chk build is ok.
I’ll take a closer look into the fre build compile option to see what went
wrong tomorrow. I’ve already had enough pain today-
Thanks,
Calvin
Calvin Guan Software Engineer
ATI Technologies Inc. www.ati.com
-----Original Message-----
From: Chuck Batson [mailto:xxxxx@cbatson.com]
Sent: Tuesday, August 17, 2004 10:20 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] cl.exe hung while building
MFC in a driver?
Well, here’s some general steps for diagnosing compiler issues:
- Determine which source file’s compilation is causing the hang.
- Generate preprocessor output for the file in question.
- Use trial and error to determine what source code lines lead to the
hang.
- Send a reproducible test case to Microsoft support.
- Use the knowledge gleaned from #3 to massage the source code into
non-hanging form as a workaround.
Some other things to consider:
- Compiler command-line options can play a role. Try compiling with
optimizations on/off, etc.
- You could try using older or newer DDKs with different
versions of the
compiler (sorry, I don’t actually know how the compiler versions have
been going with the DDKs).
Chuck
----- Original Message -----
From: “Calvin Guan”
> To: “Windows System Software Devs Interest List”
> Sent: Wednesday, August 18, 2004 8:03 AM
> Subject: [ntdev] cl.exe hung while building
>
>
> > Hi,
> >
> > I’m porting a MFC application from .DSP to SOURCES. I’ve done the
> similar
> > porting before.
> >
> > After created all DDK makefiles, I started up ‘build -cZ’.
> the cl.exe
> > appears hung after compiling several files. CL.exe is taking 98% of
> CPU
> > reported by task manager.
> >
> > What could be wrong? I’m out of idea-;(
> >
> > Thanks,
> > Calvin
> > -
> > Calvin Guan Software Engineer
> > ATI Technologies Inc. www.ati.com
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@ati.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
It seems to be a bug in the optimizer. I can reproduce it on many version of
CL.EXE back to the one in VC6.
Calvin Guan Software Engineer
ATI Technologies Inc. www.ati.com
-----Original Message-----
From: Calvin Guan [mailto:xxxxx@ati.com]
Sent: Tuesday, August 17, 2004 10:40 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] cl.exe hung while building
As I stated, it was an MFC UM app.
Actually, I’ve just found out which CPP files it’s hanging on. It’s a big
file with a lot of stuff I don’t quite understand.
I’ve captured the compiler options in the log file.
Not forget to mention that the chk build is ok.
I’ll take a closer look into the fre build compile option to see what went
wrong tomorrow. I’ve already had enough pain today-
Thanks,
Calvin
Calvin Guan Software Engineer
ATI Technologies Inc. www.ati.com
-----Original Message-----
From: Chuck Batson [ mailto:xxxxx@cbatson.com
mailto:xxxxx ]
> Sent: Tuesday, August 17, 2004 10:20 PM
> To: Windows System Software Devs Interest List
> Subject: Re: [ntdev] cl.exe hung while building
>
>
> MFC in a driver?
>
> Well, here’s some general steps for diagnosing compiler issues:
>
> 1. Determine which source file’s compilation is causing the hang.
> 2. Generate preprocessor output for the file in question.
> 3. Use trial and error to determine what source code lines lead to the
> hang.
> 4. Send a reproducible test case to Microsoft support.
> 5. Use the knowledge gleaned from #3 to massage the source code into
> non-hanging form as a workaround.
>
> Some other things to consider:
> - Compiler command-line options can play a role. Try compiling with
> optimizations on/off, etc.
> - You could try using older or newer DDKs with different
> versions of the
> compiler (sorry, I don’t actually know how the compiler versions have
> been going with the DDKs).
>
> Chuck
>
> ----- Original Message -----
> From: “Calvin Guan”
> To: “Windows System Software Devs Interest List”
> Sent: Wednesday, August 18, 2004 8:03 AM
> Subject: [ntdev] cl.exe hung while building
>
>
> > Hi,
> >
> > I’m porting a MFC application from .DSP to SOURCES. I’ve done the
> similar
> > porting before.
> >
> > After created all DDK makefiles, I started up ‘build -cZ’.
> the cl.exe
> > appears hung after compiling several files. CL.exe is taking 98% of
> CPU
> > reported by task manager.
> >
> > What could be wrong? I’m out of idea-;(
> >
> > Thanks,
> > Calvin
> > -
> > Calvin Guan Software Engineer
> > ATI Technologies Inc. www.ati.com
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
http:
You are currently subscribed to ntdev as: xxxxx@ati.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com</http:></mailto:xxxxx>