Article title: gcc best compilation parameters. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
I. Version 1.2 (gcc 2.9.x)
I386 (Intel), do you really want to install gentoo on that?
CHOST = "i386-pc-linux-gnu"
CFLAGS = "-march = i386-O3-pipe-fomit-frame-pointer"
CXXFLAGS = "-march = i386-O3-pipe-fomit-frame-pointer"
Isung (Intel), do you really want to
Detect the CPU, BIOS, motherboard (including chipset, motherboard slot, interface, etc.) of the computer, system manufacturer, chip, bus, equipment, etc.
The CPU types that Windows Optimizer Master can detect are as follows:
Intel Series: Core series, Pentium Extreme Edition, Pentium 4 Cedar Mill, Celeron D, Pentium M Yonah,
determine which product the processor belongs. For example, 6 Series INTEL processors include Pentium Pro, Pentium II, Pentium II Xeon, Pentium III and Pentium III Xeon processors. The 5th generation includes the Pentium processo
if available, else/tmp ).
Gcc best compilation Parameters
This article focuses on the parameters specified for GCC in different hardware environments for optimal performance. This article is separated from a programming instruction manual named Gentoo Linux, which is helpful for compiling programs.
--------------------------------------------------------------------------------
I. version 1.2 (gcc 2.9.x)
I386 (Intel), do you really want to install gentoo on that? CHOST = "i386-pc-linux-gnu"
Use the cpuid Assembly command (machine code: 0fh a2h, if your compiler does not support cpuid command, only emit machine code), this command can be recognized by the following CPU:
More than 486 of Intel CPUs,
CPU above cyrix M1,
CPU above amd am486
(1) obtain the cpu oem string to determine the CPU vendor
Let eax = 0 first, then call cpuid
InEl CPU will return:
EBX: 756e6547h 'genu'EdX: 49656e69h 'inei'ECX: 6c65746eh 'ntel'EBX, EDX, and ECX will be connected to genuineintel.
The
algorithm was re-implemented using a combination of regular integer and fixed point arithmetic. images produced with integer version of the chroma key were abstrally identical to those created by a floating point one. the price was to reduce the working angle parameter range so that its tangent fit into reasonable fixed precision representation-this disallowed small and large angles and although did not present a problem for the test images, can be a potential problem. second problem is that th
Check the memory information, CAT/proc/meminfo. Similarly, check the CPU information. CAT/proc/cpuinfo sometimes has such questions. For example, if the 4-core CPU is a 2-core CPU * dual-core, or 1 CPU * quad core? There is a simple method: the number of processor, the number of cores, and the number of CPUs, depending on the physical ID + 1 of the last Processor
For example:
processor : 0vendor_id : GenuineIntelcpu family : 6model : 23model name :
GCC compilation optimization settings-general Linux technology-Linux programming and kernel information. The following is a detailed description. Check your gcc version:
# Gcc -- version
* Obtain the cpu model:
# Cat/proc/cpuinfo
* Create the make. conf file under/etc/and write different content according to the cpu model (note that your gcc version must be above 3.0 ):
I386 (Intel)
CHOST = "i386-pc-linux-gnu"
CFLAGS = "-march = i386-O3-pipe-fomit-frame-pointer"
CXXFLAGS = "-march = i386-O
How can we optimize your system? The following is a simple and small method, but the optimization and adjustment of a system is far more than that. The performance needs to be adjusted according to actual needs. There is no way to meet all system requirements.
1. Check your gcc version:Note that your gcc version must be later than 3.0.
# Gcc -- version
2. obtain your cpu model:
Cat/proc/cpuinfo
3. Create the make. conf file under/etc/and write different contents according to the cpu model.
◆ I
mechanisms.
11.5.1 Cache control registers and bits
Figure 11-3 depicts the Cache control mechanism in the IA-32 processor. Unlike the memory address space, these work in the same way as Intel 64 processor.
The intel 64 and IA-32 architecture provides the following Cache control registers and bits to allow or restrict cache for various pages or regions in the memory:
1,CD flag, control register Cr0 bit 30-- Control the cache of the system memory location (see section 2.5 ). If the CD mark is
manufacturers. The Intel processor type identifier we typically use is "0", and the "0f24" CPUID is of this type.Family (series)The series identification can be used to determine the processor belongs to that generation of products. Intel processors such as the 6 series include Pentium Pro, Pentium II, Pentium II Xeon, Penti
Pentium family introduced Intel MMX technology, Intel MMX technology uses the single instruction multi-data (Single-instruction multiple-data, SIMD) execution mode to achieve parallel computing on the packaged 64 register.The clock frequency is from the original 60Mhz and 66Mhz to the later 200MHzIntel? Pentium? 4 Pro
interpretation of English nouns for computer majors
1, the company and its trademark name
Microsoft: Sometimes shrinking MS is the name of the world's most famous software company, the American software giant Microsoft. Microsoft is actually composed of two English words: Micro meaning "small", soft meaning "soft", here should be "Software, software", as the name suggests, Microsoft (Microsoft) is specialized in the production of software companies. More than 90% of today's computers are loaded
Stepping, for example, 681 ).Type)The type identifier is used to distinguish whether an INTEL microprocessor is installed by an end user, or by a professional personal computer system integrator, service company, or manufacturer; the number "1" indicates that the tested microprocessor is used by the user for installation; the microprocessor tested by the digital "0" mark is used for installation by professional personal computer system integrators, service companies, or producers. The INTEL pro
interrupt, 1 open
IOPL (I/O Privilege level)
12,13
I/O permission level for the current task (program)
NT (Nested Task Flag)
14
Task nesting flags, 1 the current task is linked to the task performed earlier, usually because an interrupt or an exception triggers the task gate in the IDT table
RF (Resume Flag)
16
Control processor response to debug exceptions (#DB), 1 temporarily disables debug exceptions due to instruction b
joined the second execution pipeline (pipeline) to achieve stronger performance (two pipelines, well known U and V pipelines, which can execute two instructions in the same clock cycle). On-chip cache doubling (16K), 8k for caching code, 8k for caching data. The data cache uses the MESI protocol with the INTEL486 processor to support more efficient cache writeback. An on-chip branch table and is added to enhance the execution performance of the loop.
In addition, the processor has joined:
Some
the hardware based on the BIOS (basic input and output system) and enters the operating system to perform the function of supporting the system platform.
Chip classification
Intel:socket386, Socket486, Socket586, Socket686, Socket370 (810 motherboard, 815 motherboard), Socket478 (845 motherboard, 865 motherboard), LGA 775 (915 motherboard, 945 motherboard , 965 motherboard, G31 motherboard, P31 motherboard, G41 motherboard, P41 motherboard), LGA 1156 (H55 motherboard, H57 motherboard, P55 mot
family: 15
Note: The CPU serial number produced by the CPU manufacturer can be used to determine which product the processor belongs.For example:The 6 series Intel processors include the Pentium Pro, Pentium II, Pentium II Xeon, Pentium III, and Pentium III Xeon processors.
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.