Re[8]: [Gc] Native Client support? (Android support)
Ivan Maidanski
ivmai at mail.ru
Wed Jan 5 02:12:18 PST 2011
Hi Manuel,
1. Why do you include linker.h in misc.h?
2. Could pthread_attr_getstack be used for main thread? Does it return a usable value?
Please get the latest BDWGC snapshot and try to compile with -DUSE_GET_STACKBASE_FOR_MAIN.
3. AFAIK, mono libgc has Android support in the HEAD branch (but I haven't communicated with the author who initially added the support of Android platform).
Regards.
Mon, 3 Jan 2011 17:31:16 +0100 Manuel.Serrano at inria.fr:
> Hi Ivan,
>
> Here is the new patch I'm now using for compiling the version 7.2alpha4
> for Android. In comparison to the previous one, this new patch uses
> linker/linker.h
>
> ...
>
> I think I got confused because the script I use to compile the collector
> what not including "linker" in the CPP path. I known that this is
> confusing but and Android distribution does not really come with a
> "usable" gcc hence you have to create you own. For the sake of
> completeness here is the script skeleton I use:
>
>
>
> At Bigloo configuration time, I run the following command:
>
> -----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----
> cc=$pwd/arch/android/droid-gcc
>
> cat $cc.in \
> | sed -e "s|@DROID_SDK_ROOT@|$droidsdkroot|" \
> -e "s|@DROID_ROOT@|$droidroot|" \
> -e "s|@DROID_TARGET@|$droidtarget|" \
> -e "s|@DROID_TMP@|$droidtmp|" \
> -e "s|@DROID_ADB@|$adb|" \
> > $cc && chmod u+x $cc || exit 1
> fi
> -----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----
>
> It could be that the linking problem with __stack_base__ comes from that
> script. I will try to investigate and I will come back to you if I find
> anything useful.
>
> One last thing...
> > 2. Android port in BDWGC is not (or should not) be worse than that for
> > mono/libgc.
> Is that one included in the standard mono distribution or do they have
> something special for Android? I could probably find the information by
> myself by googling a little bit but may be your already know the answer.
> I would like to check if they do support dynamic libraries...
>
> Sincerely,
>
> --
> Manuel
More information about the Gc
mailing list