free-pdk / fppa-code-examples

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SDCC example: TimerIrqBlink translation attempt

spth opened this issue · comments

SDCC is not ready yet, but I hope it will be within a few month.

A lot is already working. For the simple examples, SDCC already manages to produce mostly okayish asm (mostly correct, but not yet very efficient). I have attached an attempt to translate the TimerIrqBlink example to C code as accepted by SDCC, and the resulting asm.
There is still a bit of glue code missing (regarding the header), and there is no support for the calibration thing.

Philipp
TimerIrqBlink.asm.gz
TimerIrqBlink.c.gz

The current (revision 10862) version of the sdcc pdk branch has some more optimizations. The generated code looks much better now.

Philipp
test.c.gz

This is great stuff.

Maybe better move this to the new repo for SDCC examples?

I'll complete the example and will then put it into the new repo.

Philipp