As said On Thu, Feb 4, 2010 at 7:11 PM, <[email protected]> wrote:
> Hello David & all, > Thank you for the information. We're trying this sreadahead( > http://code.google.com/p/sreadahead/) on ARM based target. As these > __sync_fetch_and_add_4 & readahead are not part of bionic libc; could you > please suggest us any alternatives. Or any other technique to reduce bootup > time ? > > As I said previously, these functions are normally provided by the toolchain, i.e. the compiler, not the C library. You'll notice that they are not provided by GLibc either. You could try to provide your own implementation, which should be simple to implement on non-SMP ARM systems. Incidentally, I doubt that readahead is going to be much help to reduce the boot time on Android though, since I'm not convinced that the boot sequence is i/o bound (Flash media is much faster than hard disk drives). I'd love to be proven wrong though. > Thanks. > > > On Feb 5, 2010 3:34am, David Turner <[email protected]> wrote: > > Googling reveals that __sync_fetch_and_add_4 is an x86 and x86_64 > specific builtin compiler function. > > On Thu, Feb 4, 2010 at 4:50 AM, zafar [email protected]> wrote: > > > > Trying to use sreadahead tool on android target to decrease bootup > > > > time . > > > > But sreaahesd.c are not getting compiled against bionic library. > > > > Below is the error message--------- > > > > > > > > > > > > > > > > > > > > /tmp/ccIfKOOt.o: In function `one_thread': > > > > /home/zafar/spreadahead/sreadahead-1.0/sreadahead.c:177: undefined > > > > reference to `__sync_fetch_and_add_4' > > > > /tmp/ccIfKOOt.o: In function `readahead_one': > > > > /home/zafar/spreadahead/sreadahead-1.0/sreadahead.c:166: undefined > > > > reference to `readahead' > > > > /tmp/ccIfKOOt.o: In function `one_thread': > > > > /home/zafar/spreadahead/sreadahead-1.0/sreadahead.c:177: undefined > > > > reference to `__sync_fetch_and_add_4' > > > > collect2: ld returned 1 exit status > > > > make: *** [sreadahead] Error 1 > > > > > > > > > > > > > > > > Any help will be highly appreciated > > > > > > > > Thank you > > > > > > > > -- > > > > You received this message because you are subscribed to the Google > > > > Groups "Android Developers" group. > > > > To post to this group, send email to [email protected] > > > > To unsubscribe from this group, send email to > > > > [email protected]<android-developers%[email protected]> > > > > For more options, visit this group at > > > > http://groups.google.com/group/android-developers?hl=en > > > > > > > > > > > > > > > > > > > > -- > > > > You received this message because you are subscribed to the Google > > > > Groups "Android Developers" group. > > > > To post to this group, send email to [email protected] > > > > To unsubscribe from this group, send email to > > > > [email protected]<android-developers%[email protected]> > > > > For more options, visit this group at > > > > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

