Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide
translations



Rockbox mail archive

Subject: Re: sony cd changer emulation almost finished

Re: sony cd changer emulation almost finished

From: Björn Stenberg <bjorn_at_haxx.se>
Date: Wed, 2 Jun 2004 09:49:30 +0200

sophana wrote:
> So why the API struct ? You could link the plugins so they make direct
> calls to the rockbox routines. This should be not very hard.

That makes plugins incompatible with every little firmware change, which is a nuisance.

Also, having a clearly specified plugin API means we know exactly which functions the plugins use. Therefore we don't have to worry about breaking plugin compatibility when we are modifying the firmware.

> one more question: are sh1 executables relocatable? this way, several
> plugins could be loaded together...

Any code can be made Position Independent. This is done using a Global Offset Table that all function calls via, which contains the absolute address of the functions used. That is, however, far beyond the purpose of Rockbox plugins.

-- 
Björn
_______________________________________________
http://cool.haxx.se/mailman/listinfo/rockbox
Received on 2004-06-02

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy