Orlando Llanes wrote:
There is one thing tho, it seems that variables declared within the program are not properly exported outside of the source module. I attatched a simple example program to show what I mean.
This seems to be a bug in fact. They are declared "local" in the assembler output (or shouldn't they be global for some reason, Peter?). The following program can even test this in Pascal. Frank -- Frank Heckenbach, frank@fjf.gnu.de http://fjf.gnu.de/ PGP and GPG keys: http://fjf.gnu.de/plan program orland2; uses orland2u; var bar : string (10); begin bar := 'failed'; baz; writeln (bar) end. unit orland2u; interface procedure baz; implementation var bar : external string(10); procedure baz; begin bar := 'OK' end; end.