Some problems encountered during the compilation of MIPS-Based C language compiler programs, mips Compiler
When I used Java to write a C-(simplified C Language) compiler, I encountered a long problem: After testing C-code input and executing parser and typechecking, A compl
Because ECOs needs MIPS-elf-GCC to compile the kernel, the GCC compiler of the latest gcc4.4.1 version is compiled today. The steps are as follows:
First, you must export the following variables before compiling:
Export target = MIPS-elf
Export prefix =/usr/local/$ Target
Export Path = $ path: $ prefix/bin
Echo $ Target
Echo $ prefix
Echo $ path
===============
From: http://www.kernelchina.org /? Q = node/273
In the mips architecture, a maximum of four co-processors are supported ). Cp0 must be implemented in the architecture. It controls the CPU. MMU, exception handling, multiplication and division, and other functions depend on the cp0 of the coprocessor. It is one of the essence of MIPS and opens the door to the MIPs
Http://blog.yaabou.com /? P = 96
Note that MIPs has the pipeline visibility, so the next command following the jump command will be executed before the jump is executed. This is called Branch latency. However, the compiler hides this feature, but you can set ". Set noreorder" to disable the compiler from reorganizing the code order.
Each Board has its own lDs fi
Instruction length and number of registersAll MIPS commands are 32-bit, and the Instruction format is simple. Unlike x86, The x86 instruction length is not fixed. Take 80386 as an example,The instruction length can be 1 byte (for example, push) to 17 bytes.CodeThe density is high, so the MIPs binary file is about 20% ~ larger than that of X86 ~ 30%. Fixed-length commands and formatsThe simple advantage is t
"Microcomputer without interlocked pipeline stages. Another common informal statement is "Millions of instructions per second ".
MIPS chips are widely used in the industry: mips inc. R10000; QED (http://www.qedinc.com. From mips inc in 1996. (Spin off) R5000, R7000, etc. Instruction Set
For more information, see MIPS
Http://blog.csdn.net/menuconfig/archive/2007/08/23/1756082.aspx
This chapter will show you how to read and write the assembly code under the MIPs system. The MIPs assembly code looks very different from the actual code because of the following reasons:
1. MIPS assembler compiler provides a large number of predefined
In order to compile the program on the computer composition and design-hardware/software interface, however, GCC on UbuntuX86 can only be compiled into the X86 assembly.
Sourcery codebench out a gcc toolchain for compiling to the MIPS assembler.
Our usual compilation, called Local compilation, is compiled into a compilation under the current platform. Instead, cross-compilation can be compiled into other platforms (the platform of the compiled platfor
.
2. Balanced CED instruction setcomputer (short Instruction Set Computer)
The design concept of streamlined instruction sets simplifies the number of commands and addressing methods, making it easier to implement. The parallel execution of commands is better, and the compiler is more efficient. It can perform operations at a faster speed.
This design concept was first originated from the discoveryProcessorMany features have been designed to m
Using JavaScript to simulate MIPS multiplication, mips Multiplication
This example describes how to simulate MIPS multiplication in JavaScript. Share it with you for your reference. The details are as follows:
I hope this article will help you design javascript programs.
Tags: des blog Io ar OS use SP for div
1. pipeline structure Pipeline-MIPs is one of the simplest architectures, so the university prefers to choose mips architecture to introduce the computing architecture course.-Arm has Barrel ShifterShifter has two sides. On the one hand, it can improve the speed of mathematical logic operations, and on the other hand, it also increases the complexity of hardware. The
architectures have significant performance, power, and area advantages over competitive processor architectures. These advantages stem from continuous progress in several principles: micro-architecture improvements, better integration at the system level, rapid introduction of lower-process nodes in the mobile domain, and astonishing evolution of operating system and compiler design. The MIPS32 architecture is based on the
1. pipeline structure Pipeline-MIPs is one of the simplest architectures, so the university prefers to choose mips architecture to introduce the computing architecture course.-Arm has Barrel ShifterShifter has two sides. On the one hand, it can improve the speed of mathematical logic operations, and on the other hand, it also increases the complexity of hardware. Therefore, it is more efficient than adder/s
pseudocommands can simplify tasks, and assembler provides a richer instruction set than hardware.
$1: $ at. This register is reserved for assembly. Because the immediate numeric segment of an I-type instruction is only 16 bits, the compiler or assembler needs
Split the large constant and re-combine it into the register. For example, loading a 32-bit immediate number requires Lui (loading high immediate number) and addi
Command. Large constants suc
Detailed instructions are given below:
$: That is $zero, the register always returns zero, providing a concise coding form for the useful constant of 0.
Move $t 0, $t 1
Actually for
Add $t 0,$0, $t 1
Using pseudo-directives can simplify tasks, and assembler provides a richer set of instructions than hardware.
$: That is $at, the Register is reserved for assembly, because the immediate number field of type I instruction is only 16 bits, when the large constant is loaded, the
Http://blog.163.com/tao198352__4232/blog/static/8502064520105984211236? Fromdm fromSearch isFromSearchEngine = yes
1. Pipeline StructurePipeline-MIPS is one of the simplest architectures, so the university prefers to choose MIPS architecture to introduce the computing architecture course.-ARM has barrel shifterShifter has two sides. On the one hand, it can improve the speed of mathematical logic operati
used here. For the MIPs platform tool, the prefix "MIPS-Sde-elf-" is added before the name.
As: the GNU Compiler, also known as gas (GNU Compiler ER), is used to compile the Assembly source program to generate the target file.
Ld: GNU linker. The target files generated by as need to be linked by LD and relocated t
, the purpose is only to let the LD find the library it needs, so generally remove the folder prefix in the path, leaving only the filename-that is, in the folder where the current file is found;An error occurred while compiling the FPU related files in math (the error description was not written down ...). , this can be combined with--WITHOUT-FP to avoid this error, and of course, the compiler may have less support for floating-point.There may also b
Thank you so much
http://blog.h5min.cn/ajianyingxiaoqinghan/article/details/70194392
http://blog.h5min.cn/zdyueguanyun/article/details/51322295
http://blog.csdn.net/tgww88/article/details/51393570
1, zlib of the cross-compilation:
./configure--prefix= $OPENCV _depend
1
1
After that, the makefile file is modified and the contents are as follows:
cc=mips-linux-gnu-gcc
Ldshared=mips-linux-gnu-gcc-s
The instruction set can be divided into complex instruction set (CISC) and thin instruction set (RISC) two parts, representing the architecture are x86 (CISC),ARM and MIPS (RISC)respectively.arm- RISC is a chip system designed to improve processor speed, and its key technology is to complete multiple instructions in a single clock cycle. Compared with the complex instruction set CISC, the instruction set of the ARM instruction sets with RISC archite
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.