View source for Talk:Robocode/Eclipse

From Robowiki
Jump to navigation Jump to search

Rename/Move

Since this page really focuses on Eclipse, maybe we should move it to Robocode/Eclipse - which needs a page anyway. --AaronR 21:36, 28 November 2007 (UTC)

Done! :-) --Fnl 21:51, 28 November 2007 (UTC)

Jikes

Does anyone know how to compile in Eclipse with jikes? (which does in fact compile with smaller codesize than the default javac) --Starrynte 06:20, 15 November 2009 (UTC)

Contents

Thread titleRepliesLast modified
Codesize721:49, 16 March 2013

You do not have permission to edit this page, for the following reasons:

  • The action you have requested is limited to users in the group: Users.
  • You must confirm your email address before editing pages. Please set and validate your email address through your user preferences.

You can view and copy the source of this page.

 

Return to Thread:Talk:Robocode/Eclipse/Codesize.

I tried downloading the code size utility, but the link on the wiki didn't work for me. As a backup, you can always add your workspace project folder under Options -> Preferences -> Development Options in Robocode and use the Robot -> Package robot for upload option. That is what I do.

Skotty15:42, 2 February 2013
 

I actually still use the codesize.jar from an ancient version of Robocode, which I just uploaded here. Usage is like:

java -jar ./robocode_1.07/codesize.jar robocode_1732/robots/voidious.Diamond_1.8.22.jar
OR
java -jar ./robocode_1.07/codesize.jar robocode_1732/robots/voidious/mini/*.class

There used to be a newer codesize.jar with Robocode, but I never got it to work smoothly from the command line like this.

Voidious16:05, 2 February 2013
 

I think the old codesize can also be used as part of an ant script. Which can be very helpful.

Chase17:03, 2 February 2013
 

You can find the codesize.jar file in the downloads section of the Sourceforge Robocode site. I set up a script that reruns the codesize calculation each time I hit a key, and I check after I compile.

Oh, and I use jGrasp as an IDE, I find Eclipse to be a bit heavyweight for bot development.

Skilgannon17:35, 2 February 2013
 

Thank you all for your help. I like using Eclipse as an IDE, but it isn't really suited for low-Codesize development. I thought about writing my code in Eclipse and then copying it to the Robot Editor to compile it, but I still haven't fixed the issue with the robot database.

Sheldor19:57, 3 February 2013
 

Hi mate. Not sure if you have figured this out by now, you can set up an "External Tool Configuration" in Eclipse. I wrote a little script (very basic) and saved for every bot a configuration with the name pattern. After that you can start the script after every change you made and eclipse will show you the codesize of your classes. Depending on you scripting skills you can do almost everything you need (like sum up the class sizes and whatnot).

#!/bin/sh

for i in $*
do 
echo $i
java -jar ./codesize.jar <your_development_path>/$i*.class
done
Wompi10:12, 10 February 2013
 

Does NetBeans have a built-in Code size calculator? It uses the same low-codesize compiler as the Robot Editor, right?

Wompi,
I really don't have any scripting skills. How do I create a script through the "External Tools Configurations" dialog? Thanks.

Sheldor21:49, 16 March 2013