SYSV / EABI compliance
Sergei Organov
osv at javad.ru
Tue Feb 18 10:49:15 UTC 2003
Till Straumann <strauman at SLAC.Stanford.EDU> writes:
[...]
> I solved this by declaring the bogus variable
> (only the address has a meaning) as an array of unknown
> size:
>
> /* compiler doesn't know the size, hence access is
> * through an absolute address
> */
> extern int some_linker_defined_address[];
> ...
> yyy( (unsigned)some_linker_defined_address )
>
> Does anyone have a better solution / suggestion?
I believe what you did is the best solution. At least I've seen it in
different places and used it myself ;-)
--
Sergei.
More information about the users
mailing list