In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
What is the specific method of cross-compilation of Linux system? in view of this problem, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible method.
The so-called cross-compilation is to generate executable code on one platform and run the same architecture on different operating systems.
1. Cross-compilation tool chain compilation rules arch-vendor [- (gnu) eabi]
Field explanation:
Arch: architecture, such as ARM, MIPS
Vendor: tool chain provider
Os: target operating system
Eabi: embedded application binary interface (Embedded Application Binary Interface)
According to whether the operating system is supported or not, ARM GCC can be divided into supported and unsupported operating systems, such as:
Arm-none-eabi: there is no operating system for this.
Arm-none-linux-eabi: for linux, using glibc
Arm-none-eabi-gcc: a bare metal system for compiling ARM architectures
Arm-none-linux-gnueabi-gcc: used to compile linux systems based on ARM architecture
2. ABI&EABI ABI: binary application program interface (Application Binary Interface). In a computer, the application binary interface describes the low-level interface between the application and the operating system or other applications.
EABI: embedded ABI, the embedded application binary interface specifies standard conventions for file format, data type, register usage, stack organization optimization, and parameters in an embedded software. Developers can also use EABI using their own assembly language
Acts as an interface to an assembly language generated by a compatible compiler. The difference between the two: ABI is on the computer, EABI is on the embedded platform.
3. Glibc glibc is the libc library released by GNU, that is, the c runtime. Glibc is the lowest api in the linux system. It is a C function library. It is a collection of API used when the program is running. It is generally pre-compiled and stored in the linux class system in the form of binary code.
The GNU C runtime library is usually released as part of the GNU C compiler.
The answer to the question about what is the specific method of cross-compilation of the Linux system is shared here. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel to learn more about it.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.