title: How can I define MATLAB function local variable type qualifiers / memory section in generated code?
body: <p>I am generating C code with Embedded Coder from a <strong>MATLAB function</strong> block. Because of memory constraints of my target, I need the local variables to be in the 'far' memory section, i.e. the definition of local variables in the generated code should look something like:</p>
  
  <pre><code>void fcn(...) {
    far double x[9];
    ...
  }
  </code></pre>
  
  <p>I tried defining custom storage classes and specify <code>far</code> as a qualifier, but the whole generated code does not once contain the <code>far</code> keyword. I'd be happy for any suggestions on how to accomplish this.</p>