开发者

Assembly language (x86) architecture

开发者 https://www.devze.com 2023-03-19 14:35 出处:网络
I want to know some basic concepts of assembly language to understand it\'s architecture in a better way. I have learnt high level languages like C# .NET, Ja开发者_JS百科va, and have also been introdu

I want to know some basic concepts of assembly language to understand it's architecture in a better way. I have learnt high level languages like C# .NET, Ja开发者_JS百科va, and have also been introduced to assembly language .intel_syntax a little.

I just wanted know some basic things like:

1.What is .text, .data , .global and .code section?

2.What kind of variables/data/code should be stored/written in which section?

I would love if anyone could answer or instead give me links where in I could read and learn.

Thanks.


The .text section traditionally contains your code that is mapped into memory for execution.

The .data section contains initialized data that gets mapped into memory.

I haven't heard about .code before, but there's normally a .bss section which is all zeros and is used for zero-initialized variables.


I found Iczelicon's Win32 Assembly tutorials to be very beneficial. The site is a bit dated, but the information there should be more than enough to get you started. Specifically, your questions are answered in depth in the first tutorial.

0

精彩评论

暂无评论...
验证码 换一张
取 消