main()
entry point and using the GCCE target
compiler. A workaround is described in this section:char
will be promoted to int
on WINSCW
and unsigned
on
the RVCT compiler. Due to this promotion, comparison c != EOF will not become
true on hardware and it will loop infinite.