Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I would have expected you to get some answers by now, but let me see what I can do.</p> <p>Your question is a bit vague, but it sounds like you want one of</p> <ul> <li>Code generation</li> <li>An embedded extension language</li> <li>A hand coded run-time mini language</li> </ul> <h2>Code Generation</h2> <p>You say that you are currently hand tooling the configuration code each time you change this. I'm willing to bet that this is a highly repetitive task, so there is no reason that you can't write program to do it for you. Your generator should consume some domain specific language and emit c code and header files which you subsequently build into you application. An example of what I'm talking about here would be <a href="http://www.gnu.org/software/gengetopt/" rel="nofollow noreferrer">GNU gengetopt</a>. There is nothing wrong with the idea of using xml for the input language.</p> <p>Advantages: </p> <ul> <li>the resulting code can be both fast and compact</li> <li>there is no need for an interpreter running on the target platform</li> </ul> <p>Disadvantages:</p> <ul> <li>you have to write the generator</li> <li>changing things requires a recompile</li> </ul> <h2>Extension Language</h2> <p>Tcl, python and other languages work well in conjunction with c code, and will allow you to specify the configuration behavior in a dynamic language rather than mucking around with c typing and strings and and and...</p> <p>Advantages:</p> <ul> <li>dynamic language probably means the configuration code is simpler</li> <li>change configuration options without recompiling</li> </ul> <p>Disadvantages:</p> <ul> <li>you need the dynamic language running on the target platform</li> </ul> <h2>Mini language</h2> <p>You could write your own embedded mini-language.</p> <p>Advantages:</p> <ul> <li>No need to recompile</li> <li>Because you write it it will run on your target</li> </ul> <p>Disadvantages:</p> <ul> <li>You have to write it yourself</li> </ul>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload