Can I mix C and xC in the same program? Topic is solved

If you have a simple question and just want an answer.
Post Reply
User avatar
sethu_jangala
XCore Expert
Posts: 589
Joined: Wed Feb 29, 2012 10:03 am

Can I mix C and xC in the same program?

Post by sethu_jangala »



View Solution
User avatar
sethu_jangala
XCore Expert
Posts: 589
Joined: Wed Feb 29, 2012 10:03 am

Post by sethu_jangala »

Yes, you can mix xC, C and even C++ in the same program.

Write the C, C++ and xC in separate .c, .cpp and .xc files respectively and with appropriate header files. Then call the C or C++ code from within the xC functions.

Post Reply