Questions about trampolines

Joern RENNECKE joern.rennecke@st.com
Fri Mar 18 15:53:00 GMT 2005


Robert Dewar wrote:

> Joern RENNECKE wrote:
>
>
> You need to be able to set the value of a parameter over a widely
> varying range, what makes you think you can pick two values that
> will cover all cases, or 4 or 6 for that matter. 

It will likely cover most, but not all cases.  With 12 values, you can cover
the range from 64 to 1073741824 pool entries, if you allow for up to 
four times
more entries to be provided than actually desired.
In order to allow to specify the exact size of the pool, you can provide the
source of the library that implements it, and have the application 
programmer
compile it with a -D flag which determines the desired size of the pool.
This can also be driven by a specs file so that all the programmer does is
supply one option with a numerical parameter during 'linking'.




More information about the Gcc mailing list