Porting assembly to c/c++

This Forum is about the Opentherm gateway (OTGW) from Schelte

Moderator: hvxl

Post Reply
Freeck
Starting Member
Starting Member
Posts: 5
Joined: Sun Sep 22, 2013 6:54 pm

Porting assembly to c/c++

Post by Freeck »

Schelte,

Did you (or perhaps somebody else) ever consider porting the assembly code of the gateway to c or c++?
My aim would be to integrate the gateway functionality with the thermostat functions including the controlalgoritm in one processor (esp8266)... do you consider that as feasable?

Freeck
hvxl
Senior Member
Senior Member
Posts: 1965
Joined: Sat Jun 05, 2010 11:59 am
Contact:

Re: Porting assembly to c/c++

Post by hvxl »

The choice for assembly was a no-brainer for me. I only see disadvantages to porting the code to C:
  • It is a lot of work.
  • In assembly you can easily determine how long things take, which is necessary to get the timing right. In C that is much harder.
  • In assembly you have complete control over the resources. C code will have more overhead and there is almost no free data RAM or code space left in the PIC, so features would have to be removed to make it fit.
Schelte
Post Reply

Return to “Opentherm Gateway Forum”