ebmDevMag.com home
ebm Developer's Magazine
links

developer's mag
main page

article
part 1
part 2
part 3
part 4
part 5
part 6
part 7
part 8
part 9


8 - Optional Step - Optimizing Your Source

In the new OS are some new and improved functions, rewritten in assembly language:

strlen memcpy memchr
memset strchr strcpy

Apparently these are now included as part of the standard library files, so you won't have to do anything special to benefit from the speed improvements. In addition, there are other assembly language routines that can provide specialized speed-ups:

strlen8 strlen16 strlen32 memcpy32
memchr8 memchr16 memchr32 memset8
memset16 memset32 memset8s memset16s
memset32s strchr8 strchr16 strchr32
strcpy8 strcpy16 strcpy32

For further information, see the /franklin/SDK/sneak32/include/libasm.h file. These can be really handy alternatives when you need to optimize a critical section of code simply.

Previous Section
Next Section

Copyright © 2001-2006 ebmDevMag.com - Legal Notice