Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/18/02 15:18
Read: times


 
#27465 - RE: C compiler for 8051/52
The Keil compiler is ANSI compliant. We use several test suites to confirm this.

However, there are a large number of strictly ANSI C library routines that are not implemented. For example:


  1. The file functions (fopen, fclose, etc) are not implemented. There is no file system on an 8051.


  2. The exit function is not implemented. 8051 programs are stand-alone. Main never exits and there is never an operating system to return control to.


  3. The qsort, lsearch, and bsearch functions are not implemented.


  4. The printf, putchar, puts family of functions are implemented. But, since there is no console device on an 8051, YOU must define where the printf output goes. If you want the output to go to the 8051's serial port, then, you must initialize the serial port.



If you can provide us with some examples of places where an 8051 compiler is NOT ANSI compliant, maybe we can point you in the right direction.

Jon

List of 15 messages in thread
TopicAuthorDate
C compiler for 8051/52            01/01/70 00:00      
RE: C compiler for 8051/52            01/01/70 00:00      
RE: C compiler for 8051/52            01/01/70 00:00      
RE: C compiler for 8051/52            01/01/70 00:00      
RE: C compiler for 8051/52            01/01/70 00:00      
RE: C compiler for 8051/52            01/01/70 00:00      
RE: C compiler for 8051/52            01/01/70 00:00      
RE: C compiler for 8051/52            01/01/70 00:00      
RE: C compiler for 8051/52            01/01/70 00:00      
RE: C compiler for 8051/52            01/01/70 00:00      
RE: C compiler for 8051/52            01/01/70 00:00      
RE: C compiler for 8051/52            01/01/70 00:00      
RE: C compiler for 8051/52            01/01/70 00:00      
RE: C compiler for 8051/52            01/01/70 00:00      
RE: C compiler for 8051/52, Ralf            01/01/70 00:00      

Back to Subject List