Labviewguru wrote in news:5065000000050000003E870000-
1023576873000@exchange.ni.com:
> My motivation here is primarily curiosity, but I am also motivated to
> work around the very major issue with LabVIEW, and that is a compiled
> application that is either 8-12Mb in size, or requires the addition of
> a 7 (or so)Mb dll (the runtime engine). There are of course other
> reasons, as noted above, but as I said, I am mostly curious. I
> consider writing a compiler in LabVIEW to be a great challenge. As
> soon as I learn how to write one, I may in fact take on the challenge
> myself. I have even begun reading a tutorial someone created and made
> available online for such purposes.
>
>
Still not particularly clear on your original request. Do you want labview
to compile your own language with your own syntax and grammar, or are you
writing a compiler for g-language programs?
The former, a compiler written in Labview, seems like a reasonable problem,
but this doesn't seem like what you are trying to do. The latter, a g-
language compiler, seems formidable. This is, in fact, what labview does
for a living! It takes g-lang programs, optimally (in some sense, possibly
execution time, but clearly not size!) compiles them, and runs them, all
while hiding the nasty build, as well as the executable, from the user.
This clearly isn't insurmountable-- Labview's creators did it in a finite
amount of time and not much in the way of resources-- but the things that
would make life easy for you are very likely industrial secrets!! You might
even be better off starting from scratch. You'd almost be rewriting labview
anyway.
When you think about it, most big apps have some sort of cheap, shareware,
or open source "equivalent". Even a powerhouse like Matlab has it's Octave.
For some reason ( size of task or legal obstacle, most likely), nobody has
been able to open up Labview. There are some interesting preprocessor
approaches that you might want to consider--Computerboards provides a
graphical VBasic preprocessor that you might find interesting. Matlab has
Simulink, which is a Matlab preprocessor for a graphical "language" somewhat
similar to labview, and there is a matlab compiler available.
Another interesting starting point might be labviewRT, which seems to be
compiled to run on an embedded system.
Scott