needed things are
1) make library such way that everything will be made in arm code and m68k
part will be only simple wrapper around it
2) make arm code such way that there will be only one startup function for
communication with m68k part (which will accept structure with parameters
and trap number and will call 'real' function depending on it)
3) make sure no global variables are used and no callback functions are set
from 68k part (arm code must be completely standalone), libpng should
support it. for example instead of creating 'malloc' i should set callback
which will point to my function to allocate memory etc.
4) make arm part smaller then 64kb would be nice, maybe with using of thumb
code or by using another gcc compiler (peal independent code can be
compiled using gcc 4.2). if it will be not possible then arm part will have
to be always copied to heap memory/feature memory and run from there
when all this will be done peal is not needed anymore and it will be
possible to make version which will run in simulator too, which is real
benefit which i want to get...
Nobody/Anonymous
None
None
Public
Copyright © 2009 Geeknet, Inc. All rights reserved. Terms of Use