ROBOTC.net forums
http://www.robotc.net/forums/

**FATAL**:Compiler error allocating new temporary (HWM misma
http://www.robotc.net/forums/viewtopic.php?f=63&t=13509
Page 1 of 1

Author:  terbos [ Tue Mar 01, 2016 1:00 am ]
Post subject:  **FATAL**:Compiler error allocating new temporary (HWM misma

I'm building a program for EV3 on 4.52 and got this compiler error:
**FATAL**:Compiler error allocating new temporary (HWM mismatch 44 (temp) vs 40 (pass 1 max)). Pass/Seq: 'Emit Code:120

Here's the line it choked on:

Code:
   curFrame->upperArmPos = keyInterpolate(val, keys + loKeyIx, upperArmOffset);


To get it to compile, all I had to do was break the line like this:
Code:
   float t1 = keyInterpolate(val, keys + loKeyIx, upperArmOffset);
   curFrame->upperArmPos = t1;


What's really interesting is that there are three more lines like the "broken" one immediately following. If I just comment out the first line, the next one breaks. But if I use the two-step assignment on the first line, then all the of the following lines work too.

Sounds like the back-end code generator needs some TLC.

Let me know if you need my whole program to reproduce the problem.

Terry

Author:  mightor [ Tue Mar 01, 2016 4:12 am ]
Post subject:  Re: **FATAL**:Compiler error allocating new temporary (HWM m

Hey there,

Without the rest of the code, I couldn't even hazard a guess. Do you think you could mail the entire program (including whatever includes you need to get it to compile) to xander(at)robomatter(dot)com?

Thanks!

= Xander

Author:  terbos [ Tue Mar 01, 2016 10:01 pm ]
Post subject:  Re: **FATAL**:Compiler error allocating new temporary (HWM m

Code sent to your email.

Thanks,
Terry

Author:  mightor [ Wed Mar 02, 2016 2:15 am ]
Post subject:  Re: **FATAL**:Compiler error allocating new temporary (HWM m

Thanks, i got it :)

= Xander

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/