I am using the OVERLAY directive as following: OVERLAY(func0 ! *,func1 ! *,func2 ! *,func3 ! *,func4 ! *,func5 ! *) to Excludes the functions from overlay analysis and locates its data and bit segments in non-overlaid memory I don't see any memory usage changes. Am I doing anything wrong? Thanks, Anh
Take a look to the linker map file (*.M51). In the section OVERLAY MAP OF MODULE all calls (as they are seen by the linker) are listed. Is there a call from func1 to func2?
I think I am giving up with OVERLAY. Lots of manual work that require a lot of time. I like Jon's idea of using NOOVERLAY and it seems to require a few hundred bytes more. I hope NOOVERLAY will give me clean code. Thanks, Anh
Still have problems, had to remove all function pointers. Code seems fine now. Thanks everyone, Anh