[futurebasic] Re: Does a globals file increase the size of the include file?

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : May 1998 : Group Archive : Group : All Groups

From: Rick Brown <rbrown@...>
Date: Thu, 28 May 1998 20:20:08 -0500
Mark wrote:
> If you have an include file that uses a separate globals file, does this
> make the include file, and the overall code size, bigger?  Or does FB just
> install a pointer that increases your overall code size by approximately 4
> bytes?

I'm only guessing, but I would _think_ that your overall code size would
not even increase by 4 bytes.  A globals file does not (cannot) contain
any executable statements.  Any statement that is not executable does
not turn into compiled code, and therefore does not add to the size of
the compiled program.  I think all that happens is that FB opens and
reads the globals file when it's compiling your program, and uses the
information inside to determine how to deal with references (in other
parts of your program) to global variables.

- Rick