Reputation: 4374
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, Java, 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.
Upvotes: 1
Views: 528
Reputation: 92306
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.
Upvotes: 1
Reputation: 7621
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.
Upvotes: 0