Hi..We have a 'C'code which has been compatable for the Archimdes V4.23 compiler (Header files are valid for that compiler only). And now we want to use the whole code and to be developed in Keil-compiler.The microcontroller we are using is 80C552 of phillips make.
Can any one suggest me how to modify the header file / Any one has that compatible hearder file so that I can compile the whole code in keil-compiler...
Basically, you need to get the Archimdes and Keil manuals side-by-side, and play "spot the difference"
Anything in your code that relies upon implementation-defined behaviour, and language extensions will have to be checked.
implementation-defined behaviour includes things like data representation (size, byte ordering, default signdness), calling conventions, etc.
language extensions will be things like access to SFRs, different memory spaces, bit-addressable objects, etc.
The best way to deal with this is probably to "hide" all compiler dependancies in typedefs and #defines, using conditional compilation eg, here is a header file that allows code to build under both Keil and Tasking tools: www.8052.com/.../read.phtml
Some compilers have an option to disable all extensions - if Archimedes has it, you could use that to identify where you've used extensions.
Thanks Neil,
I am just looking into the details provided by you.I will just try all your inputs given and let you know if any problem..Thanks a lot.