I'm using the windows release mspgcc-20081230.exe, from the sourceforge 
download area.

Also, as a follow on - after reading the assembly listings, I realized that 
putting long longs on the heap (in this case by making 'temp' static) this 
problem wouldn't happen.  It appears that it has something to do with register 
overwrites. (i.e., mov r11, r12; mov r12, r13; etc.)

Regards,

Nate Bragg

Re: [Mspgcc-users] quad (long long) issues
From: N. Coesel <n...@nc...> - 2010-08-26 17:56
At 13:36 26-8-2010 -0400, you wrote:
>Hello,
>
>I am having some issues returning a long long from a function of mine. I
found somewhere on the mspgcc website that when returning a quad word, the
msp430 loads r15, r14, r13, and r12.
>
>I am seeing some odd behavior on the other hand.  
>
>My function looks like this:

Which version are you using? long long is broken on GCC3.x on multiple
platforms.

Nico

Reply via email to