I have very recently started having problems with the code that codewarrior is generating. The project is a fairly large POL/C++/extend project.

I write the following line of code:
UInt32 test = 1024 * 1024;

and it gets assembled in to the following.
0007400C: 7600            moveq    #0,d5

This is obviously wrong be casue 1024 * 1024 should be 1MB, not 0.
This is happening in the DEBUG and RELEASE versions of the build.
The debug version has optimizations turned completely off.

One last thing. I put this line as the very first line in PilotMain and I commented everything else out accept for the expanded mode call.

Here is the exact code from pilot main

UInt32 test = 1024 * 1024;
                
Err error = (wLaunchFlags & 0x04) == 0 ? _CW_SetupExpandedMode() : errNone;

return error;

Test is always zero.


Any suggestions?


Thanks,

Brad


-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Reply via email to