On 9/22/2013 10:55 AM, Philipp Klaus Krause wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Am 22.09.2013 16:46, schrieb Rich B:
>
>> Hello,
>>
>> stdio.h assumes you have a computer with a screen, a keyboard, and
>> a file system.  A bare metal microprocessor has input and output
>> pins and usually a USART serial port.  You need to write your own
>> input and output routines accessing the hardware of the uP.
>> stdio.h simply doesn't apply to a uP.  comment out the #include
>> line and see what happens.
>>
>> Rich.
> Uh, sdcc does have an stdio.h and provides printf(), etc. The user
> only has to provide putchar() and getchar() for I/O.
>
> Philipp
>
>
Thanks for the correction.

I've never tried using stdio.h or printf() while working on an 8052, 
instead only using input/output pins and the USART.  That would probably 
make it easier to work with an LCD display?

Rich.

------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/22/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=64545871&iu=/4140/ostg.clktrk
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to