According to the SDCC document, the supporting files should be compiled with -c option and then linked to the main program: > sdcc -c tm1638.c > sdcc main.c tm1638.rel ![]() My Keil project has two C files: main.c and tm1638.c. I am using Windows so I downloaded the one for 64-bit Windows. The installaton is pretty straightforward - simply go to their download page and download the version for your OS. ![]() Fortunately I found SSDC (Small Device C Compiler) easily, which supports 8051. So the only option is to find an open source alternative. However Keil didn’t give accurate pricing model on their website, and I don’t really want to fill in their quote form only for my hobby project. Today I got the following error when compiling my code with Keil uVision 5: *** FATAL ERROR L250: CODE SIZE LIMIT IN RESTRICTED VERSION EXCEEDED MODULE: C:\KEIL\C51\LIB\C51FPS.LIB (-) LIMIT: 0800H BYTESĪfter googling I found that 0800H (2KB) is the code size limit of the evaluation copy, which means I must purchase a license if I want to add more features into my program.
0 Comments
Leave a Reply. |