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.
hi; these days,i work hard trying to find the problem:my program is well compiled by franklin proview 32 and can run free-of-error when download to the machine.But when compiled by the keil,there is error message informed :CMDREC.C(34): error C185: 'cmd_hdpr': different memory space where in my program,there exist the following sentences code void (* data cmd_hdpr)(void);
if i change this sentences to void (* cmd_hdpr)(void);and change the memory model from small to large. The result is that :the program can be compiled by the keil ,but can not run correctly.
On your website ,I search the difference between the version franklin proview 32 and the latest.But the information offered is concentrated on the new function .and don't describe what is allowed in the old version but is not supported now.Also don't describe what kind of job should be done when transplant the program to the keil. would you please offer me some suggestion so that I can focos on the problem and enjoy the happiness of powerful keil function? best regard
If you posted the code you may get more help. In short anything that is NOT ANSI C may have to be modified. like snow flakes no two compilers are alike.
I genuinely hope for you that it is not an alignment problem...! but there is a way out: first thing to do is to run a static code analyzer on the code.
a way out: first thing to do is to run a static code analyzer on the code.
I rather doubt that will be helpful here. Getting the static analyzer to grok such compiler-specific code (for a compiler whose documentation isn't at hand) would probably be a good deal harder still than porting the code to Keil.
Hans-Bernhard, Commercial products like PC-lint offer configuration files for specific compiler brands. But indeed, using a tool that does not have such a feature will make life harder.