On Sun, Dec 12, 2010 at 10:37:18AM +0100, roelof 't Hooft wrote: > On Sat, 2010-12-11 at 17:50 -0800, Peter Van Epp wrote: > > Is there a .h file that I'm missing that supplies a suitable putchar() > > function for the s51 simulator? If I compile this program: > > > > #include <stdio.h> > > > > main() > > { > > printf("hello world\r\n"); > > return 0; > > } > > > > it complains about no putchar() (which I think should be an > > error rather than just a warning as well!): > > Hi, > > I think that you will have to write your own putchar() > that talks to your interrupt handling for the serialport > which sends the characters out. Assuming you are using > the serialport :-) > > roelof >
Thanks, it looks like that is the best bet, but so far I haven't been successfull there either :-). It looks like sdcdb won't run under Cygwin and the simulator (which seems to be happy with Cygwin) doesn't produce any output to a file when putchar is writing to the UART. Looks like I get to put SDCC on a Linux or FreeBSD box and try on there ... If I get something working I'll send a howto to the mailing list for the next poor soul :-). Peter Van Epp ------------------------------------------------------------------------------ Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user