Re: Procs & Funcs

new topic     » goto parent     » topic index » view thread      » older message » newer message

Abhimanyu Lad writes:
> Suppose I include a .e file full of various routines(procs. & funcs),
> but in my .ex file, I just use 1 of the routines. When I bind my
> .ex file, will all the routines be included into the EXE file or only
> the one I really used??

All of the routines and variables will be included, whether
you use them or not.

I've been thinking about making a smarter bind program that
would detect unused stuff, and leave it out of the
.exe file (or shrouded source file). It would have to make
2 passes through all of the code. The first to detect unreferenced
symbols. The second to emit code into the .exe file for the routines
and variables that are actually used.  routine_id() would
complicate matters a bit.

Regards,
     Rob Craig
     Rapid Deployment Software

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu