Hello Mo,
yep, absolutely...
you can map your application at any location you want. Please check out the chapter dealing with 'Pragmas' in the compiler manual.
Here is a small (simple, basic and rough) example:
Subject: let's place the function dummy() at addres 0xC000 and main() as well as dummy2() at 0xD000
In your C file:
#pragma CODE_SEG MYCODE
void dummy()
{
...
}
#pragma CODE_SEG DEFAULT
void main ()
{
...
}
void dummy2()
{
...
}
In your PRM file:
SECTIONS
...
MY_CODE = READ_ONLY 0xC000 TO 0xCFFF;
OTHER_CODE = READ_ONLY 0xD000 TO 0xFFFF;
...
END
PLACEMENT
...
DEFAULT_ROM INTO OTHER_CODE;
MYCODE INTO MY_CODE;
...
END
There are some more detailed examples of PRM files in the linker manual, but that's basically the way it should work
Blackwolf