memory space divided into several parts: code snippet, data segment, stack, heap (collect and organize) 1. The function code is stored in the code snippet. If the declared class is never used, it is optimized at compile time, and its member functions do not occupy the code segment space.global variable or static variable, placed in the data segment,Local variables are placed in the stack,The objects created with new are placed in the heap,Memory is divided into 4 segments, stack area, heap area
Advanced Linux sound architecture (ALSA) Study Notes
Reprinted please indicate the source and the author contact: http://blog.csdn.net/absurd
Contact information: Li xianjing
Last Updated: 2006-12-19
ALSA is not a new thing that has just emerged recently. It has actually been developing for many years. However, it has not become a proper replacement for OSS names until it is in kernel 2.6. ALSA provides not only a few sound card drivers, but a
commands, and as a programming language, it defines variables and parameters and provides many control structures in high-level languages, including loops and branches.3.Linux runs at the row prompt[[Email protected] desktop]$ (line prompt)Meaning:Kiosk: User@: DelimiterFoundaton0: Host short nameDesktop: The location of your system$: User identity, $ for ordinary users (grass people), #为超级用户 (the Son of Heaven).4. Virtual Machine Management Commands:Rht-vmctl Start Desktop/server OpenRht-vmctl
/* Target address to relocate to for decompression */Addl $ z_extract_offset, % EBX/* Add to offset */# In this way, the temporary memory address of the kernel is determined.
/* Set up the stack */Leal boot_stack_end (% EBX), % ESP# Set the stack. Note that this stack is far away from us.
/* Zero eflags */# clear sign register eflagsPushl $0Popfl
/** Copy the compressed kernel to the end of our Buffer* Where decompression in place becomes safe.*/# This code can be said to be the essence of this
The declaration of BRK () and sbrk () is as follows:
#include
Both functions are used to change the position of the "program break" (Program interruption point). For details about this position, refer:
As mentioned in man:
Reference BRK () and sbrk () change the location of the program break, which defines the end of the process's data segment (I. E ., the program break is the first location after the end of the uninitialized data segment ).
BRK () and sbrk () change the "program brek"
To join this plan:
1,Method 1: JoinQqGROUP:93684322.
2,Method 2: JoinCsdnGROUP:DS plan.1.1 example of a variable storage domain 1.1.1
Pang123hui first provides an example of the learning code circulating on the Internet:
Int A = 0; // global Zone
Void main ()
{
Int B; // Stack
Char s [] = "ABC"; // s in the stack, ABC in the text Constant Area
Char * P1, * P2; // Stack
Char * P3 = "123456"; // 123456 in the constant zone, and P3 in the stack
Static int C = 0; // global Zone
P1 = (char *) malloc
adjacent in the memory. This is a simple common sense, but it is sometimes useful. If a global variable is damaged, you can check the access code of the variables before and after it to check whether there is a possibility of cross-border access. Among the executable files in ELF format, the global memory includes three types: BSS, data, and rodata. The formats of other executable files are similar. By understanding the characteristics of these three
Generally, an executable binary Program (more specifically, it is a process unit in the Linux operating system and is called a task in UC/oⅱ) there are three parts in the storage (not transferred to the memory for running), namely the code segment (text), data segment (data), and BSS segment. These three parts together constitute the file of the executable program
Executable code structure in C Language
Name
Content
Code s
A program is essentially composed of BSS, data, and text segments three. You can see that an executable program is divided into sections of code, data areas, and uninitialized data areas when it is stored (not being transferred into memory).
BSS segment (
uninitialized data area ): In a schema with segment memory management, BSS segments (
global variables in the executable file, in other words, variables and global variables that are statically allocated by the program.3) BSS segment: The BSS segment contains uninitialized global variables in the program, all zeros in the in-memory BSS segment. A BSS segment (BSS
In general, an executable binary program (more specifically, in a Linux operating system, a process unit, called a task in uc/osii, has 3 parts when it is stored (not transferred to memory), which is the code snippet (text), the data segment, and the BSS segment. Together, these 3 sections form the document of the executable program
C Language Executable code structure
name
content
code snippet
executa
Record what you have learned O (∩_∩) o haha ~MakefileLINK.BIN:START.O MAIN.OArm-linux-ld-tlink.lds-o link.elf $^Arm-linux-objcopy-o binary link.elf Link.binarm-linux-objdump-d link.elf > Link_elf.disGCC Mkv210_image.c-o mkmini210./mkmini210 Link.bin 210.bin%.O:%. SArm-linux-gcc-o [email protected] $%.O:%.cArm-linux-gcc-o [email protected] $CleanRM *.o *.elf *.bin *.dis mkmini210-fExplain:Ld:GNU's linker.Used to link a quantitative target file with the archive file and reposition their data, link
Dear friends, after a day of time, Xiao Xiao came again.Last time we talked about the history of Linux, let's talk about the installation of Linux systems today.Because Xiao Xiao's computer monitor is 4K, there is no way to find the normal display, so I borrowed our teaching pictures to chat about the installation of the system.Three elements of the installation system: Boot disk, system disk, installation disk.Here we use virtual machine to do demonstration, drive.1) start the New Virtual Machi
function openDatabase() { var openRequest = localDatabase.indexedDB.open("dbName"); openRequest.onerror = function(e) { console.log("Database error: " + e.target.errorCode); }; openRequest.onsuccess = function(event) { localDatabase.db = openRequest.result; };}
It is so easy to create, delete, and open databases. Now it is time to use OSS.
Back to TopUse OSS
server operating system to Windows Server
Environment preparation
a single Windows Server server and join to the old domain, install the DFS role and confirm that the replication group was checked, as a new file server, on the old file server ( Windows Server 2003 Install the Distributed File System component and confirm that the File Replication group service is checked.
legacy File server operating system version requirements Windows Server 2003 R2 SP2
a single Window
Linux and Windows inter-pass filesUser profile and password configuration filesUser Group ManagementUser ManagementLinux and Windows inter-pass filesYum Install-y Lrzsz650) this.width=650; "src=" https://s4.51cto.com/oss/201710/30/c770212e2226d0c20b9205856428e9b4.jpg "style=" float: none; "title=" qq20171030172618.jpg "alt=" C770212e2226d0c20b9205856428e9b4.jpg "/>650) this.width=650; "src=" https://s4.51cto.com/o
Please indicate the source when reprint: http://blog.csdn.net/absurd
ALSA is not a new thing that has appeared recently. It has been developing for many years,
2.6. ALSA provides not only a few sound card drivers, but a complete set of solutions from drivers to upper-layer applications. It took me some time to read
ALSA-related materials and code. This article records some notes taken during the study.
According to the Alsa official website, it has the following features:
1. effectively suppor
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.