[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Shared libs.
Waldi wrote:
>Michael Hohmuth wrote:
>
>> I think every instance of a shared library needs its own base
>> register. This could be either
>>
>> (a) the same register as usual (a6?) (Chris)
>> or
>> (b) another register, e.g. a5.
>>
>> Both options would probably require changes to the compiler.
>
>The usual register is a5, a6 is the frame pointer. Neither
>gcc nor lattice-c need changes. Pure-c cannot create base
>relative code at all.
The supplied Lattice libs use a4, however the compiler will happily create
code using any other address register as the base one. The only problem
then is that you can't use any of the supplied Lattice libraries. But that's
no (big) problem, because we're using shared ones instead :-))
Chris