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.
The
.textsection traditionally contains your code that is mapped into memory for execution.The
.datasection contains initialized data that gets mapped into memory.I haven’t heard about
.codebefore, but there’s normally a.bsssection which is all zeros and is used for zero-initialized variables.