Compile C as a running file for arm instructions/usr/bin/arm-linux-gnueabi-g++ Hello.cppCat Hello.cpp #include Execute the error directly. Because host is a Linux x86$./a.out-bash:./a.out:cannot Execute binary fileNeed to be executed with qemu-arm, the result is expectedQemu-arm-l/usr/
Cortex-A series Processor
Arm cortex-a series of application processors for complex operating systems and user applications. The cortex-A series Processors support arm, thumb, and thumb-2 instruction sets.
Arm Cortex-A9 ProcessorIt is a high-performance, low-energy arm macro unit with a L1 high-speed cache subsystem
The cross-compilation toolchain is designed to compile, link, process, and debug program code for cross-platform architectures in which the operating system, applications, and so on embedded Linux systems are compiled and uploaded to the target board.First of all to clarify the difference between GCC and ARM-LINUX-GCC, GCC is the C language compiler of the x86 architecture, the compiled program is executed locally, and
1, Toolchain Introduction
Toolchain contains many parts: one of the main is GCC, which can be a native compilation tool or a cross compilation tool, GCC is supported by the Binuitls tool, and Binutils is a binary code maintenance tool, which is a necessary tool for compiling programs, At the same time they also need C library (GLIBC) support. Seriously consider: Customizing a set of compiler tools is not an easy thing to imagine! If you want to keep looking, you must have the following skills:
This article was reproduced from: http://blog.csdn.net/zqixiao_09/article/details/52540887In the arm platform to implement the 4G module PPP dial-up Internet access, reference information on the Internet and their own understanding, from the ignorance to the development of the completion of more than a week. Finally see the arm board Ping Pass Www.baidu.com is very happy, now this process is organized as fo
Install the Basic Development packroot@ubuntu:~# apt-get update apt-get install-y build-essential Bison Flex Manpages-devroot@ubuntu:~# echo $?0
Install ARM-LINUX-GCCDecompression arm-linux-gcc-3.4.5-glibc-2.3.6.tar.bz2 from Vedon teaching CDTar XF arm-linux-gcc-3.4.5-glibc-2.3.6.tar.bz2
Install sudo apt-get install Lsb-coreOtherwise, no such file or directory m
It's been a long day and it's finally done.
Ubuntu does not have root permissions, just started with a lot of trouble, check a lot of information, finally Arm-linux-gcc:command not found problem solved.
Problem:
sudo tar jxvfcross-2.95.3.tar.bz2Exportpath= $PATH:/usr/local/arm/2.95.3/binUsing Arm-linux-gcc–v to check for cross-compiler installation s
ARM MMU page table frame
First on the arm MMU of the page table structure of the general block diagram (the following discussion is gradually expanded by the diagram):
The above is arm's page diagram of the typical structure: that is, the two-level page table structure:
where the First Level page table (L1) is made up of 12bit (Bits[31:20]) of the virtual address, the first Level page table has 4,096 item,
Compile C as an executable file for arm instructions/usr/bin/arm-linux-gnueabi-g++ Hello.cppCat Hello.cpp #include Run an error directly, because host is a Linux x86$./a.out-bash:./a.out:cannot Execute binary fileNeed to run with qemu-arm, the result is expectedQemu-arm-l/usr/arm
directive invokes the system routine of the operating system number bit 02The way Linux 2.6.16 is used later:The 24-bit immediate number in the instruction is ignored, the service type requested by the user is determined by the value of the register R7, and the parameters are passed through the other general registers. For example:MOV R7, #12SWI 0Each system call has a unique system call function number Alps\kernel\arch\arm\include\asm\unistd.hSystem
three-tier switch was to be purchased to enable VLAN interoperability, the previous two-tier device would be discarded. This has resulted in a great deal of waste. So is there any way to achieve the function of three-layer switch on the basis of still using two-layer equipment?
The principle of the one or three-layer switch:
Before we tell you how to solve the problem, we need to first understand how the three-tier switch works. In theory, a three-layer switch can be regarded as a two-layer swi
Tags: style http color io os using ar strong fileDevelopment environment: AT91SAM9X25 Development Board: Install linux2.6.39; PC Virtual machine: Linux version 2.6.18-194.el5 (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)), ARM-LINUX-GCC version 4.4.3 First, download GBD http://ftp.gnu.org/gnu/gdb/, I downloaded the gdb-6.8. Second, installation (1) Decompression: Tar zxvf gdb-6.8a.tar.gz (2) Configure the installation GDB: CD gdb-6.8 ./configure--tar
In the previous article, how to compile, run Arm-linux-gdb and Gdbserver, this article describes how to combine ECLIPSE-CDT for graphical compilation debuggingThe first thing to do is to create the project with the CDT and add the source files.
On the left side of Project Explorer, right-click->properties Enter project property settings
Select C/C + + build->settings in tool Settings, change toolchain to
Believe it or not, just grab a man and ask him if he knows the CPU, I think his answer will be sure, but if you ask him again do you know the structure of arm and X86? What is the difference between the two? The vast majority of people must be a face. Today's small make up to take you in-depth understanding of the CPU of these two major architectures: arm and X86. Go out and put X on it!# # Relive what the
Compiler version arm-linux-gcc4.3.3Host Red Hat 4Before compiling mplayer-1.0rc2.tar.bz2Need Mr. Cheng MP3 library, the first to compile these 3 source packagesLibid3tag-0.15.1b.tarLibmad-0.15.1b.tarZlib-1.2.3.tar1. Compiling Zlib-1.2.3.tarTar xvzf Zlib-1.2.3.tarCD zlib-1.2.3Configuration./configure--prefix=/usr/local/madplayModify makefile Specify Cross compilerVI Makefilecc=arm-linux-gccAr=
http://blog.chinaunix.net/uid-26119896-id-3302233.htmlTo Install the cross-compilation toolchain:1, first log in as root user2, copy arm-linux-gcc-4.3.2.tgz to the root directory in the TMP folder3. Unzip the command tar xvzf arm-linux-gcc-4.3.2-c/Note that the above command must have a-C and uppercase, there is a space behind to note. 4, the configuration under the compiler environment path in the console
This article as the old technical person to National Day (2014.10.01) of the tribute, limited open, belong to the studio 5 A-level confidential documents, do not provide technical advice:Nginx ("Engine X") as the world's third largest Web server, if it can be applied to embedded systems in the application of what a wonderful thing, the following will tell you the possibility of implementation (by verifying) the minimum hardware configuration (300Mhz ARM9,128MB memory).1. Cross-compiling the PCRE
Download the source code of GDB 7.3.1 from http://www.gnu.org/software/gdb.
Copy to Linux virtual machine, decompress to gdb-7.3.1 directory, enter this directory
[Root @ localhost gdb-7.3.1] #./configure -- Host = arm-Linux -- target = arm-Linux
Bytes -------------------------------------------------------------------------------------
Make has the following error prompt:
Checking for library containing wa
arm-linux Cross Compiler productionThis article introduces the use of Crosstool-ng tools to make Arm-linu cross compiler, about crosstool-ng not to speak more (can Baidu), the following to s5pv210 processor as an example of the production process.
I. Installation of Crosstool-ng
1. Get Crosstool-ngGet crosstool-ng,http://crosstool-ng.org/from official website, here I choose CROSSTOOL-NG-1.22.0.TAR.BZ2 vers
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service