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.
Frank Heckenbach wrote:
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?).
No. If the test program writes something other than "OK", this is indeed a bug. Peter -- Peter Gerwinski, Essen, Germany, http://home.pages.de/~Peter.Gerwinski/ Maintainer GNU Pascal - http://home.pages.de/~GNU-Pascal/ - gpc-980830 PGP key on request - 6C 94 45 BE 28 A4 96 - 0E CC E9 12 47 25 82 75 Fight the SPAM and UBE! - http://spam.abuse.net/ - http://maps.vix.com/
On Mon, 12 Oct 1998, Frank Heckenbach wrote:
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?).
I meant at a low level within the unit. In my example, a variable was declared in the unit, and another variable declared in the asm file. The unit had access to the asm's variables, but not vice versa. See ya! Orlando Llanes "Meine Damen und Herren, Elvis hat soeben das Gebaeude verlassen!" "Look out fo' flyeeng feet" O__/ a010111t@bc.seflin.org \/|____. O <__. \/\> / \ ____________|___\______ http://ourworld.compuserve.com/homepages/Monkey414
participants (3)
-
Frank Heckenbach -
Orlando Llanes -
Peter Gerwinski