Why Does C Language Need Stack for Function Calls While Assembly Language Does Not?

Why Does C Language Need Stack for Function Calls While Assembly Language Does Not?

Recently, I have seen many analyses about uboot, and to run C language, it is necessary to prepare the stack. In the Uboot’s start.S assembly code, regarding system initialization, I also saw the action of initializing the stack pointer. However, I have only seen people say that system initialization requires initializing the stack, that is, … Read more

Analyzing Function Calls at the Assembly Level

Analyzing Function Calls at the Assembly Level

Introduction Assembly language is the foundation for learning reverse engineering. This article analyzes function calls from the assembly level to understand the specific implementation processes of stack pushing, jumping, execution, and returning, as well as the application of the stack. My knowledge is limited, so please point out any errors or unclear points. Your encouragement … Read more

C Language and Assembly Correspondence Analysis Revealing Function Call Essence

C Language and Assembly Correspondence Analysis Revealing Function Call Essence

Recently, NetEase Cloud Classroom opened a course called Linux Kernel Analysis. I have always been interested in operating systems and the essence of computers, so I took a look. In the first class, the teacher asked students to write a blog about the first lesson as an assignment. I was quite surprised by this novel … Read more

Deep Dive into AI Agents with ERNIE SDK and Multi-tool Orchestration

Deep Dive into AI Agents with ERNIE SDK and Multi-tool Orchestration

In the past year, the rapid development of large language models (LLMs) has attracted global attention. Tech giants like Baidu have launched their own large models, continuously pushing the performance limits of language models. However, the industry’s goals for LLMs are no longer limited to basic Q&A functions but are seeking to utilize large models … Read more

How to Implement an AI Agent with Task Splitting and Function Calling

How to Implement an AI Agent with Task Splitting and Function Calling

Machine Heart SOTA! Model Community Column Author: Hoshino Gen Column Editors: Zhi Hu, Ya Fang, Xiao Tu Classmate This column is produced by Machine Heart SOTA! Model Community, updated every Sunday on the Machine Heart public account. This week we invite “LLM Modification Group” member “Hoshino Gen” to share how to implement your own AI … Read more