PART1 Environment Building and tool installation 1.1 setting up a cross-compilation environmentTo install the relevant compilation tools:sudo Install Gcc-arm-linux-gnueabiHere I use the Gcc-arm-linux-gnueabi series tools that are included in the Ubuntu system source and have the following tools after installation:Arm-linux-gnueabi-addr2line arm-linux-gnueabi-GCCArm-linux-gnueabi-gprof arm-linux-gnueabi-Ranlibarm-linux-gnueabi-ararm-linux-gnueabi-GCC-
/apparmor {Start|stop|restart|try-restart|reload|force-reload|status|kill} Start:sudo/etc/init.d/apparmor start Stop:sudo/etc/init.d/apparmor stop Reload:sudo/etc/init.d/apparmor Reload Show status:sudo/etc/init.d/apparmor Status And on ...Additional Useful AppArmor CommandsNote: In these examples, | = or. Geprof or Aa-gprof (and on). Source:novell AppArmor Guide Genprof | Aa-genprof Generate or update a profile. When running, you must specify a. IF T
I. multiple choice questions: 10 questions in total at 15 points
1. Any internal Sorting Algorithm Based on "comparison". If six elements are sorted, the number of comparisons required in the worst case is at least ____.
A.10 B .11 C.21 d.36
2. the relational model has three types of integrity constraints. Defining foreign keys implements integrity.
A. entity integrity B. referential integrity
C. User-Defined integrity D. entity integrity, referential integrity and user-defined integrity
3. 64
above Code is optimized by the-O option.5. Enhance pipeline processing capability.In the current processor, each core has multiple execution units and uses pipelines to execute each other. If there is no dependency between the two operations, they can be executed in parallel.Consider a summation for LoopInt array [N]; assume N is an even number.Int sum = 0For (INT I = 0; I {Sum + = array [I];}The pipeline can be expressed as follows:Int sum1 = 0;Int sum2 = 0;For (INT I = 0; I {Sum1 + = array [I
Address: http://hi.baidu.com/xiaoyue1800/item/a11a2c4a26da4b04c11613d9
The functions of the arm-Linux tool are as follows:
Arm-linux-addr2line handleProgramThe address is converted to the file name and row number. In the command line, give it an address and an executable file name, and it will use the debugging information of this executable file to indicate which file is on the given address and the row number.
Arm-Linux-ar creates, modifies, and extracts archive files. An archiv
version and status.
Browse Tracker
Browse to previous source positions.
C: B games
Games in a integrated development environment? You bet.
Code profiler
Provides graphical interface to gnu gprof profiler.
Code snippets
Manages small pieces of code (I. e. snippets ).
Code statistics
Shows various statistics from source code files.
Copy strings to clipboard
Copies literal strings from the current ed
profiling tool (Prof) to the Code to identify statistics, and the-PG option generates statistics that can only be identified by the GNU profiling tool (GPROF ).Information.Note: Although GCC allows debugging Symbol Information to be added while optimizing, the optimized code will be a great challenge for debugging itself.After the code is optimized, the declared and used variables in the source program may not be used any more, and the control flow m
additional code for profile for GPROF
(6)-save-temps to save the temporary file
There are many other debugging options, see the GCC Manual
13. Optimization Options
(1)-O Optimization
-O1 General Optimization
-O2 is more optimized than-O1.
-O3 is more optimized than-O2.
-O0 not optimized
There are many other optimization options, see the GCC Manual
14. Target machine options
By default, GCC compiles the local target code, and can also compile the co
files output by the gnu c compiler GCC. The generated target files are connected by the linker lD.
> C ++ filt: The linker uses it to filter C ++ and Java symbols to prevent overload function conflicts.
> GPROF: displays various data of a program call segment.
> Ld: The linker, which combines some objects and archive files, relocates the data, and references the link symbol. Generally, the last step to create a new Compilation Program is to call lD.
GCC optionsGCC has more than 100 compilation options available. many of these options may never be used, but some of the main options will be frequently used. many GCC options include more than one character. therefore, you must specify the respective characters for each option, and, just like most Linux commands, you cannot separate the characters with a group of options. for example, the following two commands are different:Gcc-p-g test. c
Gcc-PG test. cThe First Command tells GCC to compile t
observed ), prefetch commands are not necessarily executed (due to jump and other reasons). In addition, commands are often executed in disorder in the pipeline after dynamic scheduling, and how to reproduce the original order is also a problem. There are roughly three solutions:
In addition to normal operation, some processors can also run in serial mode. All the fetch cycles can be displayed on the off-chip Bus (equivalent to disabling cache and pipeline ). In this way, tracking is much ea
GCC. Including the GNU zip ar used to create the library, as well as the GNU performance and coverage testing tools: gprof and gcov.
How the compiler works -- describes more details about how GCC converts source code to executable programs. Compiling is a multi-level process involving multiple tools, including the GNU Compiler itself (through the gcc or g ++ front-end), the GNU Compiler as, and the GNU linker ld. A complete set of tools in
://ggcov.sourceforge.net
Http://blog.csdn.net/livelylittlefish/article/details/6321861Http://blog.csdn.net/livelylittlefish/article/details/6321887
1. What is gcov?
Gcov is GCC coverage
Is a tool for testing code coverage.
Is a command-line console Program
With the release of GCC, GCC is used to test the statement coverage and branch coverage of C/C ++ files;Working with profiling tool (such as GPROF), you can estimate which code in the program is the
. Profiling Program (UNIX platform): add the-PG parameter during compilation to generate a gmon during program execution. and then run gprof. out.6. Memory aliases and process calls severely limit the compiler's ability to perform a lot of optimization.
Chapter 2 Storage hierarchy1. If the data required by your program is stored in the CPU register, you can access it within zero period of execution.2. SRAM stores each bit in a cell of a bistability me
Use pre-compiled tool chains
Download:
FTP: // ocuser: [email protected]/toolchain/or32-elf-linux-x86.tar.bz2
Extract
Tar xjf or32-elf-linux-x86.tar.bz2
Decompress will generate a new folder, or32-elf/export file path, add the following command ~ /. Bashrc File
Vim ~ /. Bashrc
Add at the end of the text
Export Path = $ path:/home/mark/work/or32-elf/bin
Trial
Command Line input or32-elf-, press TAB twice
$ Or32-elf-
Or32-elf-addr2line or32-elf-gcov or32-elf-objdump
Or32-elf-ar or32-elf-gdb or32
integrate third-party tools is weak. For example, you cannot customize some macros to process repeated operations. you cannot experience the pleasure of automating makefile in one step. you cannot remotely log on to the server for development. you cannot use some "adhesive" to use third-party tools (for example, text Tools, string Tools) can be effectively called. It can be said that good commercial support and silly development are their main advantages.
In linux
Linux development tools are cu
SRS is a Chinese development of a video server, the use of support rtmp and HLS protocol, can be made into a container, let the client push the stream, or can be combined with ffmpeg own initiative to pull the stream, detailed instructions can view the SRS wiki:Https://github.com/ossrs/srs/wiki/v2_CN_HomeSrs:http://ossrs.net/srs.release/releases/index.htmlSRS Web Player: http://www.ossrs.net/players/srs_player.html?stream=livestreamport=19350#Ffmpeg:http://www.ffmpeg.org/download.htmlOr: wget ht
Common directives:1. LDD-V Display Dependent library informationShared library configuration information /etc/ld.so.conf,ldconfig refreshes the shared library cache for the system2, NM output symbol table informationCharacter meaning: R means read-only D refers to the data segment T means the text segment s represents the BSS segment-A display from file-N Sort by address3, objdump-d disassembly-A equals AR-j. text-s a.out View text and display it in source codeDetailed Introduction http://man.li
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.