View unanswered posts | View active topics It is currently Tue Nov 25, 2014 7:12 pm






Reply to topic  [ 4 posts ] 
Severe/Fatal Compiler Error? 
Author Message
Rookie

Joined: Wed Oct 20, 2010 3:24 pm
Posts: 3
Post Severe/Fatal Compiler Error?
So I have two pieces of code that I'm trying to fuse together into one code. The first part calibrates the speed of my wheels, and the second actually makes my vexbot move.
When I run each code separately they work fine. But when I put them together (by just copying/pasting part B after part A) and compiled I got the following errors:

**Severe*:Out of memory space for nested { .. } blocks or procedures (270/256):Nested:116/116Pad:0Var/Temp:154/0

And,

**FATAL**:Compiler error allocating new temporary (HWM mismatch 16 (temp) vs 14 (pass 1 max)). Pass/Seq: 'Emit Code:85.

I've googled both to no avail. I actually went through and counted my braces ({) and I only have about 90 of them.

Any ideas?

Thanks.


Mon Oct 25, 2010 4:09 pm
Profile
Site Admin
Site Admin

Joined: Tue May 15, 2007 9:02 am
Posts: 406
Post Re: Severe/Fatal Compiler Error?
What version of ROBOTC are you using?

Can you post your code, preferably in two phases?
Phase 1: The two pieces separated
Phase 2: The two pieces combined

Without looking at your code, one thing you could try is changing your compiler settings from Debug to Release. Go to View > Preferences > Compiler Code Generation and select Release.

_________________
Jesse Flot
CMU Robotics Academy
ROBOTC Support


Mon Oct 25, 2010 4:56 pm
Profile
Rookie

Joined: Wed Oct 20, 2010 3:24 pm
Posts: 3
Post Re: Severe/Fatal Compiler Error?
I'm using ROBOTC v. 2.26 (8.19)

I've attached the codes.
Part A is "4wheels"
Part B is "VexbotcodepartB"
and Part A+partB is "thecode"
Thanks again!


Attachments:
thecode.c [14.39 KiB]
Downloaded 231 times
VexbotCode PARTB.c [9.27 KiB]
Downloaded 255 times
4wheels.c [7.02 KiB]
Downloaded 242 times
Tue Oct 26, 2010 3:09 pm
Profile
Site Admin
Site Admin

Joined: Tue May 15, 2007 9:02 am
Posts: 406
Post Re: Severe/Fatal Compiler Error?
Your code compiled fine for me in version 2.30 http://i56.tinypic.com/2j2szy8.png

Try updating ROBOTC.

_________________
Jesse Flot
CMU Robotics Academy
ROBOTC Support


Thu Oct 28, 2010 9:29 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


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.