iThome online | iThome Blog | iThome周刊訂閱

載入中...

fantasy

IT邦初學者
9級

怎麼判斷HP-UX系統內的程式是 32bit 或 64bit?

分享一個簡單判別程式是32位元還是64位元的方法



收到書籤:發佈到twitter      
分享時間:2008-09-08 23:43:45
最近更新:2008-09-08 23:44:45

▼ ADVERTISEMENT ▼

分享內容(
4

- 64bit
root@Lab1 # file testmem
testmem: PA-RISC2.0 shared executable dynamically linked -not stripped
- 32bit
root@Lab1 # file /usr/bin/ls
/usr/bin/ls: PA-RISC1.1 shared executable dynamically linked

PA2.0 can support 64 bit and 32bit mode. an a.out can be as a 32 bit binary in PA2.0, if you complie it with +DA2.0 option.

If you complie with +DA2.0W then the a.out will be as 64bit binary in PA2.0

Summary compile options as
+DA1.1 - 32bit in PA1.1
+DA2.0 - 32bit in PA2.0
+DA2.0W - 64bit in PA2.0
===================================================
compile時的差異

- 64 bit
$ cc +DA2.0W a.c
$ file a.out
a.out: ELF-64 executable object file - PA-RISC 2.0 (LP64)

- 32 bit
$ cc +DA2.0 a.c
$ file a.out
a.out: PA-RISC2.0 shared executable dynamically linked -not stripped
$ cc +DA1.1 a.c
$ file a.out
a.out: PA-RISC1.1 shared executable dynamically linked -not stripped

參考資料:HP IT資源中心論壇

怎麼判斷HP-UX系統內的程式是 32bit 或 64bit?

目前沒有資料

回應

請填寫您的回應,長度限為1,000個字,回應不計點數,也不限使用次數



 

檢舉違規

違規事項:

*補充檢舉理由(可省略),字數不可超過100字

推薦

推薦理由:


*給回答者的鼓勵(可不填),字數不可超過100字

▼ ADVERTISEMENT ▼

熱門標籤

 cisco   crystal   exchange   it   java   javascript   linux   m-power   mail   microsoft   msnlib   msnp15   msnsdk   msn機器人   mysql   nas   oracle   outlook   pmi   pmp   raid   report   sap   server   smartquery   sql   vista   windows   xp   倍力   倍力資訊   免費軟體   國際專案管理師   報表   專案管理   微軟   有話大聲說   活動   省錢   網路   網路儲存   網路管理   網頁安全   網頁設計   資安   資料庫   資訊安全   防毒軟體   2003   2008