hi, is there any way to specify or influence storage memory area for functions ? ie., where function start ? If that can't be done on function level, can it be done on C-source file level? I loked in Cx51-directives, nothing usefull found. thanks.
The SEGMENTS directive (for LX51) lets you control the location of all segment types. BL51 has a whole series of directives like CODE, DATA, XDATA, etc. See "Segment and Memory Location Controls" in chaper 9 of the Assembler/Utilities manual. All functions in one C source file are combined into a single segment that has to be located as a unit. If you need to locate individual functions (or data items), they need to have their own .C file.