I am trying to sort out how best to go about a project which is a word game. It requires as an input an array of all of the words that can be made from a sequence of 2-8 letters (anagrams). There are several examples in C, and a few in python, that generate this output, and I would like to know if its possible to compile C code in some way to have it run on a server, receive a string of 2-8 letters, and either produce the array of possible words as an xml, or somehow send said array directly to an SWF (AS2 or 3).
Alternatively, could this be run locally and use external interface calls?
This ideally would support multiple dictionary files, starting with SOWPODS.
One example of such a utility, with source, is Ken Silverman's FindWords, from http://advsys.net/ken/utils.htm
I am currently attempting to code the word finder in flash, but expect that it will be much slower than a c++ tree-based version - and I don't really understand tree search yet.