View unanswered posts | View active topics It is currently Fri Aug 01, 2014 1:56 am






Reply to topic  [ 5 posts ] 
Complier Information 
Author Message
Rookie
User avatar

Joined: Wed Apr 30, 2008 7:05 am
Posts: 18
Location: Brisbane, QLD
Post Complier Information
is there a way of getting complier information out of RobotC? by complier information i mean like how much resources will be used by the program

_________________
experiencing slow death by thesis


Wed Apr 30, 2008 7:38 am
Profile
Expert
User avatar

Joined: Fri Nov 09, 2007 4:51 am
Posts: 121
Location: Hungary, Europe
Post Re: Complier Information
locky wrote:
is there a way of getting complier information out of RobotC? by complier information i mean like how much resources will be used by the program


Having the source compiled you can switch to the "disassembly" view where you can see the bytecode dump together with the relative addresses --> last address is approximately size of the program.

Memory consumption of static variables can be estimated by yourself (e.g. an integer array with a size of of 20x100 occupies approx 4 kbyte). Temporary variable usage is insignificant, compared to program store and static variables.


Fri May 09, 2008 8:27 am
Profile
Creator
Creator

Joined: Fri Feb 09, 2007 9:21 am
Posts: 614
Post Re: Complier Information
ROBOTC has quite a nice display of "Compile Statistics" that has been disabled for all but the internal debugging environment. I've just added a check box in the "Compiler" tab for "Preferences" that can be used to enable this display. It's about 10 to 15 lines of display that is added to the "Errors" window on every compile. It does include the number of variables allocated, total code space required, etc.

It's an option because very few users will be interested in this info.


Sun Aug 10, 2008 2:19 am
Profile
Rookie
User avatar

Joined: Wed Apr 30, 2008 7:05 am
Posts: 18
Location: Brisbane, QLD
Post Re: Complier Information
thats great news dick :P . Question though is that in 1.40PC2 or in a later version as i can't seem to find any option in preferences and im running PC2

_________________
experiencing slow death by thesis


Tue Aug 12, 2008 7:20 am
Profile
Creator
Creator

Joined: Fri Feb 09, 2007 9:21 am
Posts: 614
Post Re: Complier Information
It is in version 1.41 which has not yet been released. Should be available in next couple of weeks.


Tue Aug 12, 2008 10:54 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 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.