We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
how do i create a user defined data class with specific functions from different .c files and place the class at a particular address in ram
Do you mean the functions (which are CODE), or their associated data?
If they need to be together, the easiest way would be to put them in the same source file...
See #pragma USERCLASS in the manual.
The description hints that this directive may simple rename the entire segment, rather than allowing you to break one file into pieces. Try an experiment to be sure.
yes by function i mean the CODE and also #pragma userclass does it for the whole file and not for particular functions(CODE) in file
what i actually want to do is to break my existing code and place one part(some functions(code)) of it in first 8K and the rest afterwards,and also want optimizations done by keil not be affected much by it.
Break the code into two files; use the linker directives to locate the first piece in the first 8k.