[Sdcc-user] SDCC version 2.3

Hi,
After downloading SDCC v2.3.0 , I tried compiling an old C file I had
compiled with v2.2.2. This was a project I had completed some time back.
No errors were announced & the code seemed ok, and the implemented
improvements for bit manipulation code etc.,were also visible.
But when I downloaded the code into an 89c51 the program does not run at all
(7-seg displays display garbage etc.)!
I dont own an emulator, and the a glance at the asm code gave no clue.
When I replaced the code with my old v2.2.2 output., the circuit worked
fine.
Has any one experienced this? What can I do? And I was eagerly awaiting
release of V2.3.0 !
Thanks,
--Royce.

Thread view

Hi,
After downloading SDCC v2.3.0 , I tried compiling an old C file I had
compiled with v2.2.2. This was a project I had completed some time back.
No errors were announced & the code seemed ok, and the implemented
improvements for bit manipulation code etc.,were also visible.
But when I downloaded the code into an 89c51 the program does not run at all
(7-seg displays display garbage etc.)!
I dont own an emulator, and the a glance at the asm code gave no clue.
When I replaced the code with my old v2.2.2 output., the circuit worked
fine.
Has any one experienced this? What can I do? And I was eagerly awaiting
release of V2.3.0 !
Thanks,
--Royce.

You are stuck debugging it. You can lace your code with
printfs() out to the serial port. I don't use printfs, but prefer
a simpler tx_str() that just dumps a string or even a single
character to the serial port. Or if its more convient, output
a value to some unused port pins and get a scope.
This can be a slow process of ellimination.
Macros can be used to leave some trace debug
code in your program that can be turned on or off.
The s51(ucSim) simulator can be used instead
of real hardware to avoid the lengthy download/burn chip
cycle. It can be setup to route serial port data to file or tcp
telnet session.
Hope that helps,
Karl.
Royce & Sharal Pereira. wrote:
>Hi,
>
>After downloading SDCC v2.3.0 , I tried compiling an old C file I had
>compiled with v2.2.2. This was a project I had completed some time back.
>No errors were announced & the code seemed ok, and the implemented
>improvements for bit manipulation code etc.,were also visible.
>
>But when I downloaded the code into an 89c51 the program does not run at all
>(7-seg displays display garbage etc.)!
>I dont own an emulator, and the a glance at the asm code gave no clue.
>
>When I replaced the code with my old v2.2.2 output., the circuit worked
>fine.
>
>Has any one experienced this? What can I do? And I was eagerly awaiting
>release of V2.3.0 !
>
>Thanks,
>
>--Royce.
>
>
>
>_______________________________________________
>Sdcc-user mailing list
>Sdcc-user@...
>https://lists.sourceforge.net/lists/listinfo/sdcc-user
>
>