Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/24/10 18:06
Read: times


 
#176905 - Reimplement the standard library functions?
Responding to: ???'s previous message
Andy Neil said:
I guess you meant "expensive" there?


Yes, I meant expensive. :)

Andy Neil said:
Use memory-specific pointers if you can!


I do try to use memory specific pointers where I can. I'm not really sure why I didn't have a memory specific pointer as a function argument here. Changing that will mean that the function will cost less to call, but it's size shouldn't be affected.

I have noticed that all of the standard library routines use generic pointers to be as general as possible. Would you recommend trying to re-implement some of these routines using memory specific arguments? I only recently started using the library functions where before I hand coded everything thinking that library were always going to be too expensive. Now I'm trying to find a good balance between not reinventing the wheel and squeezing the code size down.

Thanks for your observations!

--David


List of 5 messages in thread
TopicAuthorDate
General pointer usage techniques            01/01/70 00:00      
   This is one of those architectural limitations            01/01/70 00:00      
      Reimplement the standard library functions?            01/01/70 00:00      
   re pointers            01/01/70 00:00      
      As ever...            01/01/70 00:00      

Back to Subject List