hacker.org Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
number of instructions limitation

 
Reply to topic    hacker.org Forum Index » Wormageddon View previous topic
View next topic
number of instructions limitation
Author Message
CrappySnafu



Joined: 24 Oct 2008
Posts: 12
Location: Switzerland

Post number of instructions limitation Reply with quote
Hi folk

i am interested in to know how this limitation is defined. is this 500.000 java instructions?

Code:
for (int i = 0;i<500000;i++)


now limit reached? Wink if not, is it possible to measure the number of instructions?


thx for answer
Fri Oct 24, 2008 6:52 pm View user's profile Send private message ICQ Number
adum



Joined: 19 Apr 2007
Posts: 392

Post Reply with quote
hey there. the limit is the number of actual bytecode instructions. a loop like

Code:
for (int i = 0;i<500000;i++)


will typically produce about 3 instructions per iteration, so you'll get through about 150000 items before reaching the limit. you can disassemble java code to see what things are doing if you're interested. also, switching on info in the simulator will tell you how many instructions you use each step.
Fri Oct 24, 2008 10:13 pm View user's profile Send private message Visit poster's website
CrappySnafu



Joined: 24 Oct 2008
Posts: 12
Location: Switzerland

Post Reply with quote
ah, the bytecode is counting

thx for answer.

also thx for the tipp about the simulator, didn't noticed before.
Sun Oct 26, 2008 10:05 am View user's profile Send private message ICQ Number
Display posts from previous:    
Reply to topic    hacker.org Forum Index » Wormageddon All times are GMT
Page 1 of 1

 
Jump to: 
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.