thx, but i’ve written already an function for that by myself . I want test how much memory will be needed to include mioslibsdcc.lib… and if it is possible to use memcpy etc.
(i want check which performance is reachable with this lib)
The last time I included the lib it took about 5k of space (too much for my taste for one or two divisions). I’d be interested to know if it’s less in the meantime, although I doubt it.
I’ve heard different opinions here, but IMHO, it’s best to avoid complex divisions, use bitshiftings if possible (*2 and /2), or add __asm-optimized divisions (eg from the piclist) if needed and use the hardware multiplier (asm). Sofar I never needed any pointerMath, so I can’t say anything about that.
@audiocommander: thx again, yes i know bitshifting for multi/div from 6501 ASM
@stryd_one: i don’t find any source from SDCC, only headers for that. There are many *.libs for different processor types in include directory of SDCC, but i don’t know what i have to do..