Category Archives: MitrionC

One simple problem, (too) many solutions with MitrionC

In preparation to tackle a bigger problem, I decided to code a MitrionC program that does the following: reads MEMSIZE numbers from an external memory and writes them to an internal memory (I call these numbers the ‘database’) reads 1 … Continue reading

Posted in MitrionC | Comments Off

Post-workshop question 003

Question: Here is a log of what happens if I run mitrion with the -sizes option. Can you tell me what is wrong? % mitrion -batch -sizes dumb_search_v02.mitc Mitrion SDK PE v1.5.3 build 537 – http://www.mitrionics.com 2008/11/11 14:56:05 GMT Your … Continue reading

Posted in MitrionC | Comments Off

Post-workshop question 002

Question: Is there any way of converting a type bits:1<10> to a type bits:10? Response from Mitrionics Support: Sure, just reformat the list to a vector: bits:1[10] vector = reformat(list,[10]); then do a direct assignment bits:10 scalar: bits:10 scalar = … Continue reading

Posted in MitrionC | Comments Off

Post-workshop question 001

Question: I am trying to code a program that reads 10 numbers from an external memory and 1 query number from another external memory. The 10 numbers are written to an internal memory. Then I would like to determine if … Continue reading

Posted in MitrionC | Comments Off