title: Why do we need to define .data and .text section in assembly?
body: <p>I'm reading an assembly book. The book explains that there are .text and .data section in a computer's memory. An example in the book also use the following source code.</p>
  
  <pre><code>[SECTION .data]
  
  [SECTION .text]
  </code></pre>
  
  <p>since the above code snippet is written in assembly, I have a question.</p>
  
  <p>Do .data and .text codes separated in physical memory (if so why? and does CPU care?) ? or is it just us (human) to separate them in the assembly language?</p>