Also this really does not belong on android-developers.  Please move further
discussion to android-porting; thanks!

On Thu, Feb 4, 2010 at 8:26 PM, David Turner <di...@android.com> wrote:

> As said
>
> On Thu, Feb 4, 2010 at 7:11 PM, <md.zafar.z...@gmail.com> 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 <di...@android.com> 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 md.zafar.z...@gmail.com> 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
>> android-developers@googlegroups.com
>> >
>> > To unsubscribe from this group, send email to
>> >
>> > android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com>
>> >
>> > 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
>> android-developers@googlegroups.com
>> >
>> > To unsubscribe from this group, send email to
>> >
>> > android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com>
>> >
>> > 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 android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to