Android prelink-linux-arm.map, LOCAL_PRELINK_MODULE

來源:互聯網
上載者:User

From http://androidforums.com/application-development/20932-prelink-linux-arm-map.html

prelink-linux-arm.map is for providing addresses so that the loading of all the registered libraries can be done faster.
If you want you can add address for your library.
You can see on top of the file various address ranges for different categories.

If you do not want to add, then just add:
LOCAL_PRELINK_MODULE := false
line in your Android.mk file

Ruchik

---------------------------------------------------------------------------------------------------------------------

什麼是 Prelink ? 它能為我做什麼 ?

許多的應用程式使用共用函式庫. 在這些程式被執行的時候,
共用函式庫會被讀進記憶體中, 並且跟程式中所參用到的符號(symbol)連結起來.
對大多的小程式而言, 通常這樣的動態連結非常快.
但是對一些依存於大量函式庫的 C++ 程式而言, 動態連結卻可能花上不少的時間.

在大多數的系統上, 函式庫並不會常常被更動, 每次程式被執行時所進行的連結動作都是完
全相同的,Prelink 利用這點, 將程式與函式庫連結的方式弄出來記錄在執行檔中,
達成"預先連結"的效果.

"預先連結"能夠節省應用程式的啟動時間.
以典型的 KDE 程式為例, 程式的讀取時間能夠減少 50% 那麼多.
唯一必要的維護只有每當被"預先連結"過的執行檔所連結到的函式庫有所更新時,
需要再次執行 prelink.

 

http://blog.csdn.net/eqiang8271/archive/2011/04/08/6309226.aspx

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.