Hi, #pragma codeseg cannot be saved and restored. It is global for the whole source file. So is #pragma constseg.
SDCC does not try to replace LCALL with ACALL as it does not know where the code will end up after linking. There is a command line option to do this but it will replace *all* jumps and calls. Maarten > For example, I want to link some functions in a specific module in a > conjunctive segment CODE1, which will address from 0x1000, > and therefore calls within CODE1 will be ACALL and from outside will be > LCALL (for MCS-51). > > I've tried: > > #pragma save > #pragma codeseg CODE1 > > void module_functions() { > ... > } > > #pragma restore > > Which has no effect. > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Sdcc-user mailing list > Sdcc-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/sdcc-user > ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user