[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GNU Java Compiler and Swarm
From: |
pauljohn |
Subject: |
Re: GNU Java Compiler and Swarm |
Date: |
Sat, 23 Jun 2001 09:31:51 -0500 |
"Marcus G. Daniels" wrote:
>
> PJ> thread "main" java.lang.AbstractMethodError: createBegin at
>
> First make sure that you have the Swarm libraries and GCJ libraries in
> the LD_LIBRARY_PATH.
That got it. Explicitly adding /usr/lib/swarm made the difference:
$ export
LD_LIBRARY_PATH=/usr/lib/swarm/:/usr/local/gcc3/lib/:$LD_LIBRARY_PATH
$ export PATH=/usr/local/gcc3/bin:$PATH
$ time ./model -b
You typed `heatbugs -b' or `heatbugs --batch' so we're running without
graphics.
Heatbugs is running for 300 timesteps
It is logging data every 1 timesteps to: unhappiness.output
quitting at 300
real 0m43.459s
user 0m42.380s
sys 0m0.060s
This is still much slower than the objective-c version. Do you see it
too?
But it is totally cool to think I might someday profile and debug a java
program with the gnu tools I'm starting to understand. I can already
run jheatbugs under gdb already, and it gives some information. Cool.
Look here:
$ gdb ./model
(gdb) break HeatbugModelSwarm.java:222
(gdb) run
Breakpoint 4, HeatbugModelSwarm.buildObjects() (this=0x8196de0)
at ./HeatbugModelSwarm.java:222
222 getIntegerWithMin$withMax (minOutputHeat,
maxOutputHeat);
(gdb) print * this
$1 = {<swarm.objectbase.SwarmImpl> = {<java.lang.Object> = {vtable =
0x8053ce0,
sync_info = 0x0}, <swarm.activity.SwarmProcess> = <invalid
address>, <swarm.activity.SwarmProcessS> = <invalid address>,
<swarm.objectbase.SwarmS> = <invalid address>, <swarm.objectbase.Swarm>
= <invalid address>, <No data fields>}, numBugs = 100,
evaporationRate = 0.98999999999999999, diffuseConstant = 1, worldXSize
= 80,
worldYSize = 80, minIdealTemp = 17000, maxIdealTemp = 31000,
minOutputHeat = 3000,
maxOutputHeat = 10000, randomMoveProbability = 0,
randomizeHeatbugUpdateOrder = false,
modelActions = 0x0, modelSchedule = 0x0, heatbugList = 0x819e300,
world = 0x810be30,
heat = 0x8234dc0, actionForEach = 0x0}
This is an awesome improvement, in my opinion.
--
Paul E. Johnson email: address@hidden
Dept. of Political Science http://lark.cc.ukans.edu/~pauljohn
University of Kansas Office: (785) 864-9086
Lawrence, Kansas 66045 FAX: (785) 864-5700
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.
Re: GNU Java Compiler and Swarm - some tactics, jones . peter, 2001/06/23