Iam trying to create an array of integers using bytecode instructions
http://en.wikipedia.org/wiki/Java_bytecode_instruction_listings
Any ideas how to do it?
Iam trying to create an array of integers using bytecode instructions http://en.wikipedia.org/wiki/Java_bytecode_instruction_listings Any ideas how to do it? |
||||
The size of the array is popped off the stack, so you need to push it onto the stack first. To create a 1000 element array for instance, you could do something like
Edit: I just noticed that there's a standard lib function to fill arrays. That makes things much easier.
|
|||||||||||||||||
|
anewarray
ornewarray
instructions? – templatetypedef Jun 8 '13 at 0:53