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.
Not so far as I know!
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.