AnsweredAssumed Answered

CW10.6 inline assembler issue

Question asked by Peter Khanin on Jan 29, 2015
Latest reply on Feb 3, 2015 by Pascal Irrle

Hi,

 

I have found that CW10.6 calculates inline assembler expression as if it is C expression.

 

int* pointer;

 

__asm__ void func()

{

     lea pointer+1, a0

     ...

 

Here a0 loaded with address of pointer + sizeof(pointer)... but CW5 things that 1 here is 1 byte.

 

Is this a bug or a feature?

 

Thank you,

 

Peter

Outcomes