The general format of the C language function definition was: type specifier function name (type specifier formal variable 1, type specifier formal variable 2,…) declaration statement part; execution statement part;}. The function definition needed to define the function header and the function body: - Function header: - Function Name: It is used to identify the name of a function. The function name must be followed by a pair of parenthesis. Other than the main function, other functions can be named according to the rules of the indicator. The program style requires that the function name can reflect the function function and help the memory. - Function Type: The function type before the function name refers to the type of the function return value. If the function is an int, int can be omitted; if the function has no return value, it is indicated by void type. If the function is a parameterless function and there is no return value after the call, the function type should be stated as void, otherwise it may cause a program error. - Formalized parameters table: The part in the parenthesis is the list of formal parameters, where the parameters are formal parameters, including the argument part of the function. Each argument should be described with the corresponding type indicator. If there are multiple arguments, separate them with commas. The formal argument list of a function without parameters is empty, but a pair of () cannot be omitted. - Function body: It is the code in the outermost pair of curly brace below the function head. It is composed of a series of statements to implement the function. The function body can contain function descriptions, variable descriptions, and executable statements. It can also be a pair of empty curly brace (such as void function (void){}, which is an "empty function". Calling it will not produce a valid operation). Regarding the disassembling of C language functions, take a simple two-digit swap function swap as an example (operated in clion): - When performing disassembling analysis, first write code in the clion and break the point, then debuff. Right-click on the debugger's break point and select disassembling analysis. - From a compilation perspective, the swap function's operation: - push % rmp: Store the stack base address of the stack. The push operation is to save the current situation because it involves the stack of other programs. - mov % rmp, % rmp: Sets the current stack top (main) as the current stack base, and rmp is the address of the stack top. - mov % rdi, -0x18 (% rmp): An assignment on the stack, which can be regarded as the address of the local variable a. - mov % rsi, -0x20 (% rmp): An assignment on the stack, which can be regarded as the address of the local variable b. - movl $0x0, -0x4 (% rmp): An assignment on the stack, which can be regarded as a local variable c. - mov -0x18(%rbp),%rax、mov (%rax),%eax、mov % eax, -0x4 (% rbb): These steps will assign a value to c. - mov -0x20(%rbp),%rax、mov (%rax),%edx、mov -0x18(%rbp),%rax、mov % edx,(% rax): These steps will assign the b value to the a value (address transfer value). - mov -0x20(%rbp),%rax、mov -0x4(%rbp),%edx、mov % edx,(% rax): These steps will assign the value c to the value b (address transfer value). - nop、pop % rmp, ret: Restore rmp and return. There is a similar push at the main function entrance. %rbp、mov % rmp, % rmp, and other operations to handle stack related operations. Read more exciting novels for free
The following are some key points that will help you quickly master the disassembling of ARM. * * 1. Command Basics ** 1. * * Jump command ** - Unconditioned jump command: - [B: Make an unconditional jump.] - [TL: An unconditional jump with a link. It can be used to call a function and save the return address.] - [BX: An unconditional jump with state switching.] - [Blx: Ununconditional jump with link and status switch.] Its format is like Bloc_address, etc. 2. * * Memory and register interaction data instruction ** - Registers can store many types of data, such as strings, numbers, or addresses. The storage address unit contains an address (e.g., 0x00004000) and the value stored in the address. - IDR: loads data from memory into the LoaD register. For example, IDR R8,(R9,#04) means that the value of the storage unit pointed to by R9 + 0x4 is loaded into the R8 register. - STR: Store the data of the register into the memory (STore register). For example, STR8,(R9,#04) stores the data of the R8 register into the storage unit pointed to by R9 + 0x04. - LPM: loads the data of the memory into a register list (LoaD Multiple). For example, LPM R0,{R1-R3} loads the data of the storage unit pointed to by R0 into the R1, R2, and R3 register in sequence. - Store Multiple: Store the data of a register list into a specified memory. - Push: Pushes the register value onto the stack. - Pop: Pushes the stack value to the register. - SWP: Exchanges the data between the register and the memory. For example, SWP R1, R1 (R0) exchanges the contents of the R1 register and the unit pointed to by R0. 3. * * Data Transfer Command ** - MOV: Transfer the data of the immediate number or register to the target register, such as MOV R0,#8 (0x8 data is transferred to R0, equivalent to assignment). 4. * * Data Arithmetic Operation Command ** - Including add (addition), sub (substitution), mul (multiplication), div (division), signed and signed operations, as well as carry operations. 5. * * Data logic operation instruction ** - AND, ORR, XOR. - Shift command: - Lsl: logical shift left. A logical shift left will make the value larger because it is a multiple of 2 in the binary-system. - LPR: Logically Shift Right. Logically Shift Right will make the value smaller. 6. * * Comparisons Command ** - For example, CMPR0#0 is used to compare the value in the R0 register with 0. The comparison result can be viewed through the flag bit (such as the z bit). These flag bits can be seen in the register window during dynamic tuning. 7. * * Other commands ** - Coprocessor instructions such as SWT (switching user mode), and pseudo-instructions such as DCG. * * 2. Register-related ** 1. * * Registers addressing method ** - Immediate addressing: For example, MOV R0,#1234. - Registers addressing: such as MOV R0, R1. - Shifting addresses: MOV R0, R1, LSL#2. - Registers indirect addressing: IDRR0,(R1), that is, the value in the R1 register is used as the address, and the value in the address is taken out and assigned to R0. - The register's indirect base address offset addressing was: IDRR0,(R1,#-4), which took the value of the R1 register minus the value of 0x4 as the address, and took the value from the address to R0. 2. * * Register classification and function ** - In user mode, there were ungrouped register (R0-R7) and grouped register (R8-R14). R0-R3 was used to pass parameters and return values, and R13 (also known as SP) was used to store the top address of the stack. In order to study the disassemble of the ARM-class, one needed to read and analyze a lot of actual ARM-assembly code examples, and deepen the understanding of instructions and register operations through practice. <a href="/?from=ask_words" style="color:red" target="_blank">Read more exciting novels for free</a>
The language format of a novel needed to pay attention to the following aspects: 1. Simple language: The language of the novel must be concise and clear so that the reader can quickly understand the plot and character. Use simple and clear language and vocabulary to avoid overly complicated language and terms. 2. Various sentence patterns: The sentence patterns of the novel should be varied to increase the legibility and interest of the novel. For example, he could use inverted sentences, interrogative sentences, exclamation sentences, and other special sentence structures to express the emotions and emotions of the characters. 3. Rich vocabulary: The words of the novel should be rich and diverse. Use various vocabulary and idioms to express the character's personality, plot twist, and social environment. At the same time, pay attention to the use of appropriate words and vocabulary to avoid using too uncommon or inappropriate words. 4. Tough structure: The structure of the novel should be rigorous and use various plots and scenes to promote the development of the story and the shaping of the character's personality. At the same time, he had to pay attention to the logical relationship between the plot and the characters to avoid contradictions or loopholes. 5. Diverse Styles: The novel should have a variety of writing styles to increase the variety and legibility of the novel. For example, different writing styles such as realism, romanticism, science fiction, etc. could be used to express different storylines and characters. Writing a novel's language format requires the flexible use of various techniques and methods to enhance the novel's legibility and interest.
The stylistic function of language refers to the ability of the language system to express thoughts, feelings, intentions, and meanings. It is one of the basic functions of the language system. Different languages have different characteristics and expressions, which can provide different readers with different reading experiences. For example, a novel was a literary style that expressed the author's thoughts and emotions through the plot, characters, and scenes. It usually had a more detailed and rich description and imagination, while prose focused more on expressing the author's thoughts and feelings, focusing on concise, smooth, and bright expressions. Different languages and styles have their own unique charm and value, which can bring readers different reading experiences and feelings.
The poetic function of language usually refers to the use of various rhetorical devices and meters in literary works to create a musical and rhythmic form of poetry. In poetry, the author usually used rhyme, rhythm, rhyme, metaphor, antithesis and other techniques to enhance the expression and artistic appeal of poetry. Some forms of poetry, such as long poems, lyric poems, and short songs, all had a sense of music and rhythm. The function of poetry is not only to express the author's feelings and thoughts, but also to create a unique art form that allows readers to feel the beauty and cultural value of poetry. This kind of beauty and cultural value can be conveyed through different forms and expressions, such as novels, essays, poems, etc.
The role of environment description was to exaggerate the atmosphere, highlight the characters, promote the plot, highlight the theme, and so on. Answer format: 1. Enriching the atmosphere. Through the description of the environment, the readers could better feel the tension, suspense, nervousness, and other emotions created by the novel's situation and atmosphere. 2. Set off the characters. Through the description of the environment, the readers could better understand the living environment and personality of the characters, and lay a foundation for the image and character characteristics of the characters. 3. Drive the plot. Through the description of the environment, the readers could better understand the plot and development trend of the story, so as to better understand the plot structure of the novel. 4. Prominent theme. Through the description of the environment, the readers could better understand the theme and emotions of the novel, so as to better understand the theme and content of the novel.
The language of novels had many functions: 1. ** Character Creation ** - [Reflect status and position]: The words and tone of the character's language can reflect their status and position. For example, the honorific title used to address others or the expression from a specific identity point of view, the strength of the tone, hesitation, or confidence could all reveal the characteristics of the character's identity and class. - ** Depict character image **: Clearly show the character's character, vividly express the character's thoughts and feelings, and deeply reflect the character's inner world. Different characters had different ways of speaking, contents, and attitudes. Through language description, the image and characteristics of the characters could be well shaped. - ** Personalize Character **: A few words highlight the character's personality, identity, and status, making the character unique. 2. ** In terms of plot ** - ** Pushing the development of the plot **: The dialogue between the characters and other language descriptions can push the story forward and make the plot evolve. - [Description of the relevant content of the plot]: It can be used to predict and promote the development of the story, and explain the ins and outs of the matter. 3. ** In terms of artistic effects ** - ** Create a feeling of being there **: The description is like seeing the person and listening to the words, so that the reader has the artistic effect of being there. - ** Reflect language style **: Presents different language styles such as bold and unconstrained, gentle, simple, gorgeous, humorous, concise, delicate, etc., bringing different reading experiences to readers. - ** Show the characteristics of expression **: Show the characteristics of the novel language from the use of words, sentence patterns, punctuations, rhetorical devices, expression methods, style-based perspectives, phonological perspectives, local colors, expression techniques, etc., and produce artistic effects such as suggestive and figurative (poetic, poetic, and picturesque). 4. ** Thematic **: Borrowing the words of the characters to deepen the theme, making the language description an integral part of the work. <a href="/?from=ask_words" style="color:red" target="_blank">Read more exciting novels for free</a>
In R, the choose function was a very basic and important function. Its purpose was to select one or more elements from a specified object and return them. In the R language, this function can select rows and columns of data from a matrix, a list, or a data frame. For example: - As for the selection of the elements of the matrix: create a matrix `a <- c(1,2,3,4)`. If `a(2)` is used, the second element 2 will be returned. If `a(c(1,3,4))` is used, the first, third, and fourth elements will be returned. - For the selection of matrix elements: create a matrix `b <- matrix(c(1,2,3,4,5,6),nrow = 2, ncor = 3)`, use `b(1,2)` to return element 2 in the first row and second column, use `b(,3)` to return all elements in the third column. - For the selection of data frame elements: create a data frame `c <- data.frame(name = c("John","Mike","Lily"),age = c(20,25,30))`, use `c(2,1)` to return the element Mike in the first column of the second row, use `c(,2)` to return all the elements in the second column (age column), use `c$name` to return all the elements in the name column. "Choose" was equally exciting. Everyone was welcome to read it!
The functions of language description usually included: 1. enhance the image of the performance; 2. Create an atmosphere; 3. highlight the character's personality, psychology, feelings, etc.; 4. To promote the development of the plot; 5. To lay down the foreshadowing for the following text; 6. Revealing the relationship between characters; 7. Express the author's views and thoughts. To be specific, the role of language description can be considered according to different situations, such as: The language description in the dialogue can highlight the character's personality, psychology and feelings to promote the development of the story; 2. Language descriptions in prose, poetry, and other literary works can exaggerate the atmosphere, express emotions, and reveal the relationship between characters. 3. The language description at the beginning of the novel can attract the reader's attention and lay the foreshadowing for the following story; 4. The ending language of the novel can summarize the author's views and feelings to leave a deep impression on the readers.
If it was the multi-language function of the book chasing divine artifact, one could enter it by clicking [My] at the bottom, find the icon in the upper right corner, click to enter, open [Multi-language], and choose to save it. If it was the novel reading function of the Mobile QQ Browser (that is, voice mode), one could first open the Mobile QQ Browser, find the novel to read, click [novel] to enter the book details, then click [start reading], click the function bar that popped up in the middle of the screen, click the function navigation bar [settings] icon, and then click [language reading]. <a href="/?from=ask_words" style="color:red" target="_blank">Read more exciting novels for free</a>
Scenery descriptions usually had the following functions: 1. Prominent novel theme. Through the description of the scenery, the readers could better understand the theme and emotions of the novel and thus better feel the charm of the novel. 2. Create an atmosphere. Scenery descriptions could be used to create an atmosphere that made the readers feel the tension and suspense of the novel. 3. Show the character's psychology. Through the description of the scenery, it can better express the psychology of the characters and let the readers better understand the thoughts and feelings of the characters. 4. Increase the appeal of the novel. The description of scenery could make the readers feel the emotions and charm of the novel better, so that they would be more easily attracted and immersed in the novel. 5. Drive the development of the story. Through the description of the scenery, it could promote the development of the story and let the readers better understand the plot and the relationship between the characters. To be specific, when answering the question about the characteristics of the scene, you can answer it in the following format: 1. The role of scenery description: it highlights the theme of the novel, creates the atmosphere, displays the psychology of the characters, drives the development of the story, and increases the appeal of the novel, etc. For example, in the novel "Dream of the Red Chamber", the author highlighted the theme of the novel by describing the decadence and decline of the feudal society through the luxurious and rich life in the Grand View Garden. At the same time, the description of the scenery in the Grand View Garden also created a depressing and dull atmosphere, which promoted the development of the story. In the novel Journey to the West, the author portrayed the harsh and dangerous environment by describing the raging fire and heat waves in the flaming mountain, which enhanced the readers 'shock and appeal. At the same time, the description of the scenery of the flaming mountain also promoted the development of the story and provided the necessary background for the adventures of Sun Wukong and the others.