Gregor N. Purdy <[EMAIL PROTECTED]> wrote: > All -- > It used to emit the constants as .const right where the were found > lexically, but I've introduced code motion to collect all inline > code into the __MAIN sub at the end, which put the .const stuff > there (which I've changed to .globalconst in the case where it > is something from the top level File block).
[ snip ] > So, where am I supposed to put these .globalconsts if they > have to be in a .sub? You could emit .globalconst here: .sub ___MAIN or just emit .const as they are seen. They get folded anyway, so it's no penalty. > Generally, making me move the code around like this is a bit > of a PITA, since technically lexical accessibility of variables > inside subroutines defined after them but not those defined > before them ends up being a problem. I think you should collect all code first and then emit "main" and subs in that order. > -- Gregor leo