title: MARS MIPS and struct nodes
body: <pre><code>typedef struct node {    
      int data;    
      struct node *next;    
  } nodeL; 
  </code></pre>
  
  <p>Assuming I want to translate the above declaration in MIPS assembly language, how am I supposed to do it? Apart from allocating memory (using syscall 9), which is done in the .text segment, <strong>what about the .data segment</strong>?
  Also, what about <strong>alignment</strong>?</p>