administer@administer-laptop:~/tem/tt$ cat hello.asm
[section .data]
strhello db "hello, world!",0ah
strlen equ $-strhello
[section .text]
global _start
_start:
mov edx,strlen
mov ecx,strhello
mov ebx,1
mov eax,4
int 0x80
mov ebx,0
mov eax,1
int 0x80
administer@administer-laptop:~/tem/tt$ nasm -f elf hello.asm -o hello.o
administer@administer-laptop:~/tem/tt$ ls
a b boot.asm boot.bin coded f g hello hello.asm hello.c hello.o
administer@administer-laptop:~/tem/tt$ ld -s hello.o -o hello
ld: i386 architecture of input file `hello.o' is incompatible with i386:x86-64
outputadminister@administer-laptop:~/tem/tt$
使用64位作業系統的尷尬,相當的窘,可惜當時貪心了,
一聽說intel從酷睿開始全面採用64位cpu,就裝了,囧。
64位Linux上安裝Memcached詳細步驟
詳細步驟如下 先安裝libevent tar zxvf libevent 1.4.8 stable.tar.gz cd libevent 1.4.8 stable configure prefix usr local libevent 1.4.8 stable make make install 測...
64位Linux上安裝Memcached詳細步驟
由於32位作業系統下面單程序最大記憶體使用不能超過2g,而我們用memcached經常需要使用更大的記憶體空間,所以選擇64位的linux版本是必須的,64位os下的memcached安裝和32位os下差不多,只有乙個地方稍有不同,詳見下面的紅色字型部分。我們以版本memcached 1.2.6為例...
linux 在64位安裝memcached問題解決
1.安裝memcached所依賴的libevent 官網 解壓原始碼包至 usr local,進入解壓後的目錄,執行 configure make make install configure檔案中的預設prefix是 usr local,因此,安裝完成之後,你可以在 usr local bin 和...