- 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作業系統的發展歷史
- 修改HP-UX系統參數的方法
- 如何查詢HP-UX作業系統的版本?
- 鐵人賽的疑問?
- HP-UX如何設定或更改網卡的Gateway?
- HP-UX的系統參數查詢與調整
- 如何修改HP-UX的時區(Time-Zone)?
- 幾個HP-UX修改網卡IP Address的方式
- HP-UX中按Backspace(倒退鍵)無法刪除文字,出現[^?]的字元,該如何處理?
- 如何修改HP-UX的特殊控制碼(如[Ctrl+Break]、[Ctrl+H])?
- 小財神來報告一下鐵人賽豐富的獎品與參賽報法囉
- HP UX如何查詢記憶體大小
- HP UX中如何查詢 CPU數量 CPU名稱 CPU速率 CPU快取大小
- 鐵人賽
- HP-UX如何用舊版的kernel檔案開機?
- 鐵人賽4
- 鐵人賽6
- iT邦檔案新增「鐵人鍊成中」小貼紙
- 資安鐵人賽









