It's actually an argument to the org.ibex.nestedvm.Compiler, not gcc.<div><br></div><div>Here is the step from my Makefile:</div><div><br></div><div><div>RBinary.class: $(R_binary)</div><div> java -Xmx512m \</div>
<div> -cp "C:/Users/Owner/dev/p/<a href="http://nestedvm.ibex.org/build;C:/Users/Owner">nestedvm.ibex.org/build;C:/Users/Owner</a></div><div>/dev/p/<a href="http://nestedvm.ibex.org/upstream/build/classgen/build">nestedvm.ibex.org/upstream/build/classgen/build</a>;" \</div>
<div> org.ibex.nestedvm.Compiler \</div><div> -o lessConstants \</div><div> -o printStats \</div><div> -o maxInsnPerMethod=256 \</div><div> -o runtimeClass=org.ibex.nestedvm.RRuntime \</div>
<div> -outfile RBinary.class \</div><div> com.bedatadriven.stat.r.RBinary \</div><div> $(R_binary)</div></div><div><br></div><div>HTH</div><div><div><div><br><div class="gmail_quote">
On Thu, Jun 17, 2010 at 1:21 AM, David Ehrmann <span dir="ltr"><<a href="mailto:ehrmann@gmail.com">ehrmann@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">I couldn't find the -lessconstants flag, but there were a few others<br>
that reduced symbol count. I tried the -Os (optimize for size) flag<br>
and got my binary down to 2858 symbols, but I still filled up the<br>
constant pool.<br>
<br>
On Wed, Jun 16, 2010 at 12:07 PM, Bertram, Alexander<br>
<<a href="mailto:alex@bedatadriven.com">alex@bedatadriven.com</a>> wrote:<br>
</div><div><div></div><div class="h5">> I believe this error refers to something different than the 64k instruction<br>
> limit, but rather some sort of internal constant (literal) pool.<br>
> I received the same error on my build and was able to work around it with<br>
> the<br>
> the -lessconstants flag when executing the compiler.<br>
> I confess that I actually don't know what this flag does other than produce<br>
> less (fewer) constants :-)<br>
> Alex<br>
> On Wed, Jun 16, 2010 at 8:56 PM, David Ehrmann <<a href="mailto:ehrmann@gmail.com">ehrmann@gmail.com</a>> wrote:<br>
>><br>
>> I was able to get something non-trivial to cross compile, but when I ran<br>
>> NestedVM on it, I got this exception:<br>
>><br>
>> java org.ibex.nestedvm.Compiler -outfile Test.class Test test.mips<br>
>> org.ibex.classgen.ClassFile$Exn: constant pool full<br>
>> at org.ibex.classgen.ConstantPool.add(ConstantPool.java:247)<br>
>> at org.ibex.classgen.MethodGen.finish(MethodGen.java:604)<br>
>> at org.ibex.classgen.ClassFile._dump(ClassFile.java:169)<br>
>> at org.ibex.classgen.ClassFile.dump(ClassFile.java:160)<br>
>> at<br>
>> org.ibex.nestedvm.ClassFileCompiler.__go(ClassFileCompiler.java:380)<br>
>> at<br>
>> org.ibex.nestedvm.ClassFileCompiler._go(ClassFileCompiler.java:72)<br>
>> at org.ibex.nestedvm.Compiler.go(Compiler.java:259)<br>
>> at org.ibex.nestedvm.Compiler.main(Compiler.java:183)<br>
>> Compiler Error: Class generation exception:<br>
>> org.ibex.classgen.ClassFile$Exn:<br>
>> constant pool full<br>
>><br>
>> I googled a bit and found that it's been hit before, and there's not<br>
>> really<br>
>> a workaround. The difference is that that code used several libraries,<br>
>> mine<br>
>> uses just the standard ones. When I ran nm on it, it only had 4325<br>
>> lines of output (I assume it's one line per symbol)--far from the 64k<br>
>> limit.<br>
>> I put a System.out.println at ClassFileCompiler.java:179, and symbols only<br>
>> has ~4325 elements.<br>
>><br>
>> Any ideas?<br>
>><br>
>> _______________________________________________<br>
>> Nestedvm mailing list<br>
>> <a href="mailto:Nestedvm@lists.hcoop.net">Nestedvm@lists.hcoop.net</a><br>
>> <a href="https://lists.hcoop.net/listinfo/nestedvm" target="_blank">https://lists.hcoop.net/listinfo/nestedvm</a><br>
><br>
><br>
<br>
_______________________________________________<br>
Nestedvm mailing list<br>
<a href="mailto:Nestedvm@lists.hcoop.net">Nestedvm@lists.hcoop.net</a><br>
<a href="https://lists.hcoop.net/listinfo/nestedvm" target="_blank">https://lists.hcoop.net/listinfo/nestedvm</a><br>
</div></div></blockquote></div><br></div></div></div>