On 20.02.2013 13:08, Daniel Michalik wrote: > I then looked in sdcc/devices/lib/_ulong2fs.c, which also uses the > bottom version. Why do different devices have copies of (almost) the > same code in various places? > Shouldn't they all use the same to avoid situations like this?
don't know for this case. In general, we have one version of each libary function implemented in C, that should work for all ports. Then some ports have specific versions , typically in asm to be able to use some special instruction. there also are a few cases of different versions due to differences in speed. Though I really wonder why anyone should care much for speed on the PIC ports, fixing them seems a much more important thing to do to me (but I don't know much about PICs, and only very rarely work on that port). Philipp ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user