View unanswered posts | View active topics It is currently Mon Jul 16, 2018 4:49 am






Reply to topic  [ 4 posts ] 
**FATAL**:Compiler error allocating new temporary (HWM misma 
Author Message
Rookie

Joined: Wed Feb 24, 2010 11:51 pm
Posts: 31
Post **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

_________________
Vex & FLL Coach and robotics instructor


Tue Mar 01, 2016 1:00 am
Profile
Site Admin
Site Admin
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3654
Location: Rotterdam, The Netherlands
Post 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

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Tue Mar 01, 2016 4:12 am
Profile WWW
Rookie

Joined: Wed Feb 24, 2010 11:51 pm
Posts: 31
Post Re: **FATAL**:Compiler error allocating new temporary (HWM m
Code sent to your email.

Thanks,
Terry

_________________
Vex & FLL Coach and robotics instructor


Tue Mar 01, 2016 10:01 pm
Profile
Site Admin
Site Admin
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3654
Location: Rotterdam, The Netherlands
Post Re: **FATAL**:Compiler error allocating new temporary (HWM m
Thanks, i got it :)

= Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Wed Mar 02, 2016 2:15 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.