Porting assembly to c/c++

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

Moderator: hvxl

Porting assembly to c/c++

Postby Freeck » Sun Jan 01, 2017 9:49 pm


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?

Starting Member
Starting Member
Posts: 5
Joined: September 2013

Re: Porting assembly to c/c++

Postby hvxl » Sat Jan 07, 2017 10:24 am

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.
Senior Member
Senior Member
Posts: 1311
Joined: June 2010

Return to Opentherm Gateway Forum

Who is online

Users browsing this forum: No registered users and 1 guest