Tags: Cross compilation successful Baidu Cloud Cross compiler installation arm development VMW tooFirst, the relevant information to obtainI personally in the study mini2440 Development Board is followed by Vedon teacher's first video learning, video and materials I made a slight change, just changed the file organization structure. For information, please visit the Baidu Cloud link.Link: Http://pan.baidu.com/s/1gfy7EmB Password: J6TMDownload the good information in the video supporting informat
How are you doing. Here is the Kite blog, welcome to communicate with me.
If this blog is helpful to you, you may be able to comment below to leave a message for me.
Cross-compilation Chain download Address:ftp://ftp.gnu.org/gnu/gccor download at arm's website:Https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
Taking the installation of arm-linux-gcc-4.3.2 as an example
ubuntu16.04 (64-bi
)For the generated assembly code file, the Test.s,gas assembler is responsible for compiling it as a target file, as follows:Gcc-c Test.s-o TEST.O1.4 Links (linking)The GCC connector is provided by gas and is responsible for connecting the program's target file with all the additional target files needed to eventually generate the executable file. Additional target files include a static connection library and a dynamic connection library.For the TEST
Configure the location of arm-linux-gcc 1. unzip the arm-linux-gcc file such as: # tarxvzfarm-linux-gcc-4.5.1-v6-vfp-20101103.tgz amp; ndash; C/2. install arm-linux-
characters of the entire file. This program is very helpful for understanding the content of non-text files.
Arm-Linux-strip discards all or specific symbols in the target file.
Arm-Linux-gcc-Wall-O2-c-o $
-O only activates preprocessing, compilation, and assembly, that is, he only makes the program into an OBJ file.
-Wall indicates that all warning
1. first install build-essential: sudoapt-getinstallbuild-essential2. copy the arm-linux-gcc-4.3.2.tgz from the friendly wall disc to a folder, enter the folder from the terminal, decompress: sudotar-zxvfarm-linux-gcc-4.3.2.tgz-C/NOTE: The C of the configuration item is in upper case, and there is a space behind C. 3.
Installation steps:This is the arm-linux-gcc-4.4.3.tar.gz package released by the friendly arm.First, the compressed package arm-linux-gcc-4.4.3.tar.gz stored in the OPT directory.Execute decompression command: sudo tar zxvf arm-gcc-4.4.3.tar.gzGet the directory as follows:D
Linux gcc and gdb program debugging usage gcc General debugging format: www.2cto.com gcc-Wall-o test. c //-wall display program error details gcc-v // display gcc version gcc-o {1, 2, 3
files after the installation?You can view it in the following two ways:(1). Enter the command in Terminal: Dpkg-l software nameeg:dpkg-lgccdpkg-lgcc-4.4dpkg-lg++Dpkg-l g++-4.4(2). In the new acquisition of the package you have installed, select the point properties (or right-click), click on the Properties dialog box "installed Files" to see.Two. Installation of Gcc/g++/gfortran under CentOS1. InstallationAgain Ubuntu under the direct Apt-get install
unconstrained bit code. The unconstrained bit code is the machine code stored in the main memory, independent of the absolute address when executing.
Copy Code code as follows:
$ gcc-c-wall-werror-fpic foo.c
Step 2: Create a shared library from an object file
Now let's turn the object file into a shared library. We'll name it libfoo.so:
Copy Code code as follows:
$ gcc
Tags: * * * ext config Ubuntu bin ftp gcc View MTU1. save time by manually downloading the required packages in the production processthe packages used are as follows ( Different versions of all package versions differ ) libtool-2.4.6linux-3.2.87gmp-6.1.2mpfr-3.1.5isl-0.16.1mpc-1.0.3libelf-0.8.13expat-2.2.0ncurses-6.0libiconv-1.15gettext-0.19.8.1binutils-2.28gcc-5.4.0glibc-2.25duma_2_5_15gdb-7.12.1ltrace-0.7.3strace-4.162. Preparation of tool chain p
Arm-linux-gcc/ld/objcopy/objdump parameter summary turn from: HTTP://BLOG.CSDN.NET/MUYUYUZHONG/ARTICLE/DETAILS/7755291ARM-LINUX-GCC- WALL-O2-C-o [email protected] $-O only activates preprocessing, compilation, and assembly, that is, he only makes the program obj file-wall Specifies that all warning messages are generat
First, the header fileHow GCC looks for the required header files at compile time:※ The search for header file will start with-I※ then find the environment variables of GCCC_include_path,cplus_include_path, Objc_include_path※ Find the default catalogue again/usr/include/usr/local/include/usr/lib/gcc-lib/i386-linux/2.95.2/include/usr/lib/
-get Install command, but which folder is the source code of these software and the files after the installation?You can view it in the following two ways:(1). Enter the command in Terminal: Dpkg-l software nameEg:dpkg-l GCCDpkg-l gcc-4.4Dpkg-l g++Dpkg-l g++-4.4(2). In the new acquisition of the package you have installed, select the point properties (or right-click), click on the Properties dialog box "installed Files" to see.Two. Installation of
Source: http://hi.baidu.com/guccang/item/9205cbe25c3a1c03570f1dfb
I. Local Environment: ubuntu64-bit Operating System
Uname-A Query
Operating System: Ubuntu 64-bit Operating System
Cross Compiler: arm-linux-gcc-4.4.3
Google protobuf: protobuf-2.4.1
Result: When making, the system prompts can not find arm-Linux-G ++.
Ii. Local Environment: Red Hat 32-bit Operatin
Linux C/C ++ program debugging BASICS (GCC, G ++, GDB, CGDB, DDD), gdbcgdb
When writing a program, we often encounter some problems. For example, if some variable calculation results are not as expected, we need to debug the program. This document describes the main debugging tools used to debug C/C ++ in Linux.
Write programs in
RedHat 6.2 Linux Modified Yum source free use of CentOS sourceWhen installing Nginx on a new Redhat Linux server, none of the commands can be parsed, the GCC editor is missing, and the command to install GCC is faulty.[[email protected] ~]# yum-y install GCCLoaded Plugins:katello, Product-id, security, Subscription-man
Linux GCC Common commands1 Introduction2 Simple compilation2.1 Preprocessing2.2 Compiling to Assembly code (compilation)2.3 Assembly (Assembly)2.4 Connection (linking)Compilation of more than 3 program files4 Error detection5 Library file connections5.1 Compiling into an executable file5.2 Links5.3 Using static link libraries when linking is mandatory1 IntroductionThe meaning of
+ + programs , note that although C + + is a superset of C, there is a difference between the two requirements for syntax. C + + syntax rules are more rigorous.(2) . during the compile phase, g++ calls GCC, which is equivalent for C + + code, but because GCC commands are not automatically connected to libraries used by C + + programs, you usually use g++ to complete the link , and for the sake of unificati
is metInfo B View breakpoint InformationDelete Breakpoint Number Remove BreakpointDisable breakpoint number invalidates a breakpointEnable breakpoint number to take effect on a breakpointStep or S stepping into sub-functionNext or N stepping without entering sub-functionsContinue or C continues execution until the next breakpoint or program endsPrint or P expression or variable to view the value of an expression or variableSet variable variable = value Modify Variable valueThis article is from
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.