创建ARM Linux交叉编译环境实践 一、准备工作 首先需要一台运行Linux操作系统的PC以完成我们的编译工作。 其次要准备如下一些源文件。 1、源文件准备 binutils-2.14.tar.gz ftp://ftp.gnu.org/gnu/binutils/binutils-2.14.tar.gz gcc-core-2.95.3.tar.gz ftp://ftp.gnu.org/gnu/gcc/gcc-2.95.3/gcc-core-2.95.3.tar.gz gcc-g++2.95.3.tar.gz ...
by msj0520 - Linux文档专区 - 2007-03-27 10:35:46 阅读(872) 回复(0)
指令名稱:hash(1) - 顯示與清除 hash table (bash shell 內建指令)語法:hash [-lr] [-p filename] [-dt] [name]說明:hash table 是 shell 在解譯命令時,首先尋找的對象。當指令不存在 hash table,shell 才會利用 path 設定的路徑去尋找命令,然後加以執行。同時也會將之放進 hash table。當下一次要執行同名命令時,不用重新透過 path 找尋。shell 藉此提高命令的執行效率。 內建指令 hash 目前支援有限,可以用來看 hash ...
操作系统信息如下: RS/6000 & pSeries Details Hardware-Type(NIM)=CHRP=Common H/W Reference Platform Bus-Type=PCI Logical partition=No CPU Architecture=PowerPC Implementation=630, 64 bit Machine has 2 CPUs (2 CPUs activated) CPU Level 1 Cache is Combined Instruction=32768 bytes & Data=65536 bytes Level 2 Cache size=4194304 AIX 5.2.0.30 Kernel=Multi-Processor 64 bit 下...
操作系统信息如下:\r\nRS/6000 & pSeries Details\r\nHardware-Type(NIM)=CHRP=Common H/W Reference Platform Bus-Type=PCI\r\nLogical partition=No\r\nCPU Architecture=PowerPC Implementation=630, 64 bit\r\nMachine has 2 CPUs (2 CPUs activated)\r\nCPU Level 1 Cache is Combined Instruction=32768 bytes & Data=65536 bytes\r\n Level 2 Cache size=4194304\r\nAIX 5.2.0.30 Kernel=Mu...
将ARM ADS下的汇编码移植到GCC for ARM编译器时,有如下规则: 1, 注释行以"@"或"/* ... */"代替";" 2, GET或INCLUDE => .INCLUDE 如:get option.a => .include "option.a" 3, EQU => .equ TCLK2 EQU PB25 => .equ TCLK2, PB25 SETA ==> .equ SETL ==> .equ BUSWIDTH SETA 16 => .equ BUSWIDTH, 16 4, EXPORT => .global IMPORT => .extern GBLL => .global GBLA => .global ...
任何汇编行都是如下结构: [:] [} @ comment [:] [} @ 注释 NU ARM 汇编中,任何以冒号结尾的都被认为是一个标签,而不一定非要在一行的开始。下面是一个简单的例子,这段汇编程序定义了一个"add"的函数,该函数返回两个参数的和: .section .text, “x” .global add @ give the symbol add external linkage add: ADD r0, r0, r1 @ add input arguments MOV pc, lr @ return from subroutine @ end of program gnu ARM汇编伪指令...