You need to do this with the linker file. Basically marking the functions in the source file with an attribute (segment name), and then place the functions into a memory area in the linker file.
The syntax is somewhat different from compiler to compiler (and linker to linker).
Hope this helps,
Erich