From: Arno P. <ar...@pu...> - 2011-04-22 16:50:31
|
On 4/22/11 9:40 AM, Thomas Trocha wrote: > Hi there, I watch xmlvm for quite some time now and first of all I have > to say you are doing an incredible job! thanks! :) > Lately I just wanted to test the posix-target to compile java to > native-code in linux and somehow got stuck with > garbage-collector-problems. There were some hints about removing the > boehmgc-files and to use -DXMLVM_NO_GC. (Where would I have to use this > -DXML...?) Yes. > Nevertheless as you mentioned that the boehmgc is a more or less a > special one for iOS I tried to get it donewith my limited c/c > ++-knowledge. > And I got it work. For now only with boehmgc linked dynamically... So > for people interested have a look here: > > http://thomas.trocha.com/wp/?page_id=684 > > Maybe there is already an easyier fix and maybe it would have been > better to ask before starting :D...but hey that's the way to learn the > stuff, right? :D Nice blog. Here is what needs to be done if you want to integrate this with XMLVM: boehmgc.jar is added to the project in AugmentedCOutputProcess. Both IPhoneCOutputProcess and PosixOutputProcess use that as their input. What needs to be done is that boehmgc.jar is added in IPhoneCOutputProcess and not in AugmentedCOutputProcess. Additionally xmlvm/var/posix/Makefile should be changed to add a -lgc to the linker parameters (the Makefile is only used for the Posix target). Interested in doing this and submitting a patch? ;) Arno |