changing to:
typedef struct TS
{
UInt16 v;
}Ts;
Ts C;
UInt16 A;
UInt16 B;
produces the same problem.
- Original Message
From: Christian Lindemeier <[EMAIL PROTECTED]>
To: Palm Developer Forum
Sent: Tuesday, January 03, 2006 1:27:57 AM
Subject: Re: compiler bug with struct?
Greg
I compiled with the latest PODS and checked the content with Palm OS Debugger
using the Treo 650 debug simulator.
The is psudocode:
UInt16 Z;
UInt16 A;
main()
{
UInt16 *B;
B = &A;
}
The problem is that B is assigned the address of Z instead of A.
This is the machine code from my actual pro
Here's a simple example of the problem:
UInt16 A;
main()
{
UInt16 *B;
B = &A;
}
The address of B is 0x00e2a524.
The address of A as 0x00b5604e.
B has the value of 0x00e5604c.
Why is B 0x00e5604c and not 0x00b5604e???
I'm got getting any compile warnings.
--
For information on using the PalmSou
Only one compiler error:
CustomPatternType mix[] = {0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55
};
generates this compiler error:
warning: aggregate has a partly bracketed initializer
The debug build executes properly, even with this error.
However, the relase build gets to a point and