The attached program should do the following:
take a string - in this case "1234" and convert it to a
( a cut-down version of fscan )
If I compile the program with no command line options :
the number is returned as 0x4321
If I use the --noloopreversal option:
sdcc --noloopreversal main.c
the number is returned correctly as 0x1234
I'm using sdcc 2.3.0 under win2000.
Log in to post a comment.