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.
加载中,请稍侯......
精彩评论