Hi,
I'm now cleaning warning on PICos18 code ported from C18 to SDCC and I
need some info about the compiler behavior.
For example C18 use "#pragma code" to define the address where code
will be placed at code section, in example:
#pragma code KERNEL_ROM
Looking at SDCC manual I verified I can't use it in this way, I can
use it only to define the function address at code section.
Then I look at linker file and replaced the section name by its value
and associate it for the first function defined at "alarm.c":
#pragma code SetRealAlarm 0x0300
The warning message go away, but looking at generated assembly file
(alarm.asm) I don't see any indication it will be placed at 0x0300. I
was hoping see something like "S_alarm__SetRelAlarm code 0x0300",
but it don't happen.
Other question: will be the following functions be placed after 0x0300
address since I defined this address to first function?
Cheers,
Alan
|