We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
In an attempt to free some code space, I'm considering the wisdom of relocating some library program segments from the common code area into one of my two banks. I'm a bit reluctant to do this for library functions (PRINTF, etc), but I'm assuming that any directive relocating these program segments is detected at link time, so the appropriate bank switch code will be inserted around calls to these functions as necessary. I appreciate the slight performance 'hit' resulting from this action, but needs must etc... Is this a wise thing to consider?
Hi Andrew, I want to locate Keil library functions in a place in ROM other than the lowest 1kB, which is where they seem to reside by default. Ric.
I'd look at the map file to obtain segment names etc, and use either the CODE directive to move them around in the 'common area', or alternatively, for banking, via the approprite 'BANK' directive.