This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/TMS320F28235: Functions definition and call

Part Number: TMS320F28235

Tool/software: TI C/C++ Compiler

Hi,

Customer faced an compiler issue on F28235, about function calls issue.

The compiler version is V4.1.3, very old version.

In code1.c file, function func(int, int) is defined, and it is called in another file code2.c like func(DEFINE_1, DEFINE_2). 

DEFINE_1 and DEFINE_2 are macro. Inside, there are global parameters add operation. 

After calling func(DEFINE_1, DEFINE_2), customer found that, DEFINE_2's value was not passed into the function correctly. Its value was 0. DEFINE_1's value was passed successfully.

What' could be the issue?

Thanks in advance.

Br, Jordan

  • Unfortunately, there is not enough detail here to understand what happened.  

    Jordan Zhou said:
    In code1.c file, function func(int, int) is defined, and it is called in another file code2.c like func(DEFINE_1, DEFINE_2). 

    I presume there are yet other calls to func, and those calls work fine.  The only problem is this one call to func from code2.c.  

    For the source file code2.c, please submit a test case as described in the article How to Submit a Compiler Test Case.  If the name of the called function is not func, please indicate the name of that function.  

    Thanks and regards,

    -George