Small Basic: How a Program Runs

This article illustrates how a Small Basic program runs.

How a Program Runs

When the [Run] button on the Small Basic environment (SB.exe) is clicked, it calls Small Basic compiler (SmallBasicCompiler.exe).  Small Basic compiler reads the source file xxx.sb, compiles it, and outputs debug file xxx.pdb and executable xxx.exe .  If there are no errors, the Small Basic environment calls xxx.exe .  xxx.exe calls SmallBasicLibrary.dll (Small Basic dynamic link library) and the dll calls .NET Framework runtime library.  Then .NET Framework calls Windows systems library.  So an upper layer program calls a lower layer library and the program runs and works.

In the following picture, the thick arrows mean the data flow and the thin arrows mean the control flow.

See Also

Additional Resources

Other Languages