AnsweredAssumed Answered

How to relocate memory library function using #pragma?

Question asked by SP Lee on Jan 8, 2014
Latest reply on Jan 9, 2014 by ZhangJennie

I know how to specify the code segment in a source code. But if I am calling a function using a library, how do I specify the location for this function? For example:

...

#pragma CODE_SEG myCodeSeg

...

libfunc1(); //libfunc1() is a function in the library myProj.lib which was included in the project

...

 

I found that libfunc1() is not located in myCodeSeg. How to force libfunc1() into a code segment I want?

Outcomes