Hello
In order to specify in which code segment you want to place the functions there are two solutions:
1- You use #pragma CODE_SEG <Segname> in the C source file.
For example:
#pragma CODE_SEG AAA
void func(void) {
/*Code Here*/
}
All functions until the next #pragma CODE_SEG will be placed in segment AAA.
2- You define all your user defined segment in a header file, which is included in every c source file.
You can use the option -AddIncl in that purpose. Make sure to return to DEFAULT segment at
the end of the header file.
For example myseg.h can be set up as follows:
#pragma CODE_SEG AAA
#pragma CODE_SEG CCC
#pragma CODE_SEG DEFAULT
In the C source file you can then define the function as follows:
void func(void) @ "AAA" {
/*Code Here*/
}
CrasyCat