Hello,
I have some problems using the address of a near variable and doing some arithmetic with it.
Example:
near int Value;
unsigned int test()
{
unsigned int addr = (unsigned int)&Value;
addr += (1 << 28);
return addr;
}
When using the ELF format for C66x I get an assembly warning:
[W0001]
Value out of range; converted to 0
MVK .S1 $DPR_byte(Value)+268435456,A3 ; |175|
When using the COFF format for C64x I get no warning, but the linker hangs in a loop.
This problem only occurs with optimizations turn on. I get the same result with CG Tools v7.3.8 and v7.4.6.
Thanks,
Ralf