At 5:43 PM -0700 5/17/99, Jeff Ishaq wrote: >I guess a shared library can't be more than 32k, so that's one limitation. >I'm curious, though, if anyone has experienced (or knows offhand) the >maximum # of functions a shared lib can have. The code resource can be up to 64K. Plus, if you're clever you may be able to call code in other code resources, though admittedly you can't make a "multi-segment" shared library (in the same way you can make a multi-segment application). >Another limitation I can think of would be the size of your dispatch table. >Surely there's a finite size, and I suspect this might be the limiting >factor? Each entry in the table occupies six bytes (two for the DC.W offset to the JMP instruction, and four for the JMP instruction itself). Both the DC.W and the JMP are 16-bit values, so they must refer to something within 32K. So, in theory you should be able to have a few thousand routines in the dispatch table, but you also have to have space for the code for each routine... How many routines do you need, anyway?
