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.
Is there any C-to-C converter available to convert source files (assembly and C code) in bulk mode from IAR Embedded Workbench for 8051 to format recognized by Keil? (such as #pragma, inline asm statements, etc).
I heard that IAR has a similar C-to-C converter that supports converting from Keil to IAR C code.
CodeWright accept replaces so complex that I have converted from a to b completely using several search and replaces.
Erik
rather than simply convert from 'a' to 'b', convert to 'z', which is compatible with both!
eg,
#if keil XDATA_VAR(x) xdata x #elif iar XDATA_VAR(x) whatever IAR does #else #error Unsupported compiler #endif
As I've said many times before:
Always encapsulate your compiler-specifics in typedefs, #defines, etc...
http://www.keil.com/forum/docs/thread7110.asp
http://www.keil.com/forum/docs/thread31.asp
Thank you all for your useful suggestions and help. Special thanks to Andy, your provided link (thread7110) was quite useful (Since I am doing the same job [porting chipcon from IAR to Keil])
Many Thanks, Ali.