[Soot-list] beginner

Eric Bodden bodden at st.informatik.tu-darmstadt.de
Wed May 5 10:50:13 EDT 2010


Hi Zack.

I am afraid, actually I don't think that there is any such option. But
it should not be hard to add. You would have to generate the
appropriate bytecode attributes and attach them to the respective
SootMethods via method.addTag(attribute).

Eric

On 05/05/2010, zack morillo <zackmorillo at gmail.com> wrote:
> Hi Eric,
>
> Thank you for your reply.  I have tried the options you mentioned and now
> the Line Number Table is available.  However the Local Variable Table is not
> produced in the output, is there any option I can use so that the output
> class file contains the Local Variable Tables as well?
>
> Thanks,
>
> Zack
>
> On Tue, May 4, 2010 at 5:13 PM, Eric Bodden <
> bodden at st.informatik.tu-darmstadt.de> wrote:
>
>> Hi Zack.
>>
>> >> 1. Optimize the generated bytecode for smaller sizes, i.e. I prefer a
>> >> small
>> >> size bytecode than speed
>>
>> That is a too general question. Quite obviously you would have to
>> replace multiple statements by fewer, equivalent statements. There's
>> an infinite number of ways to do this. You may want to look at
>> peephole patterns/optimizations.
>>
>> >> 2. How can I keep the line number table and local variable table for
>> each
>> >> function?
>>
>> That has been discussed frequently on this list. There's to parameters for
>> this:
>> -keep-line-number
>> -p jb use-original-names:true
>>
>> Cheers,
>> Eric
>>
>> --
>> Dr. Eric Bodden
>> Software Technology Group, Technische Universität Darmstadt, Germany
>> Tel: +49 6151 16-5478    Fax: +49 6151 16-5410
>> Mailing Address: S2|02 A209, Hochschulstraße 10, 64289 Darmstadt
>>
>


-- 
Eric

--
Dr. Eric Bodden
Software Technology Group, Technische Universität Darmstadt, Germany
Tel: +49 6151 16-5478    Fax: +49 6151 16-5410
Mailing Address: S2|02 A209, Hochschulstraße 10, 64289 Darmstadt


More information about the Soot-list mailing list