[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gcc (Re: porting?)

> Just curious, is it possible to produce PC-relative code with long
> branches on the 020->? And is it faster than absolute addressing?

Long branches are possible on 68020+, but PC-relative code with long
offsets is not possible. For example:

	move.l	addr(PC),d0

'addr' must be 16-bit, what means a distance of -32768 up to +32767

As for speed, and for 68030, PC relative addressing seems to be of the
same speed as the absolute addressing mode (according to manuals).

Konrad M.Kokoszkiewicz
mail: draco@mi.com.pl

** Ea natura multitudinis est,
** aut servit humiliter, aut superbe dominatur (Liv. XXIV,25)
** U pospolstwa normalne jest, ze albo sluzy ono unizenie,
** albo bezczelnie sie panoszy.