<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi,</p>
<p><br>
</p>
<p>I wrote an extension to Soot. Now, when I try to compile one of the Dacapo benchmarks (for e.g, Avrora) with my extended version of soot, I run into the below error.<br>
</p>
<p><br>
</p>
<p>jasmin:257871: Jasmin: exception - &lt;java.lang.RuntimeException&gt; PC great than<br>
65535, the token is label868 : 467999</p>
<p><br>
</p>
<p>It seems the exception is being thrown when&nbsp;writing out one of my own classes that I wrote as an exception to soot.</p>
<p><br>
</p>
<p>From a similar question, here: <a id="LPlnk158385" href="https://mailman.cs.mcgill.ca/pipermail/soot-list/2007-February/001031.html">
https://mailman.cs.mcgill.ca/pipermail/soot-list/2007-February/001031.html</a>&nbsp;</p>
<p><br>
</p>
<p>It seems the error comes from&nbsp;a&nbsp;method exceeding the&nbsp;64K&nbsp;bytecode size. However,&nbsp;as I understand it, this&nbsp;might only be true for really&nbsp;long methods?&nbsp;The&nbsp;longest method in the&nbsp;class in question is only 10 lines long.</p>
<p><br>
</p>
<p>It should also be noted that I do NOT run into this error when compiling own of my own test programs (which are pretty small ~ 200 lines of code) with the&nbsp;Soot extension.</p>
<p><br>
</p>
<p>Could anyone give me a pointer on how to go about&nbsp;debugging this?&nbsp;I see the&nbsp;error is being thrown at the&nbsp;jas.CodeAttributeDecoder.decode method. Would it help if I modified the&nbsp;source at&nbsp;CodeAttr to print out the PC value it is getting at line&nbsp;142?</p>
<p><br>
</p>
<p>Thanks,</p>
<p>Naveen&nbsp; <br>
</p>
</div>
</body>
</html>