Hello to those wanting to see a working stm8 port in sdcc. I've worked on the stm8 port a bit in the recent days. Of course it is far from complete, and the code generated still tends to be inefficient and buggy, and not all aspects of code generation are implemented yet. Nevertheless, the port can now compile 30 of the standard library functions: Assembly code is generated, assembling it fails, since some of the glue code between compiler and assembler is missing¹.
The port can be found in the stm8 branch: svn.code.sf.net/p/sdcc/code/branches/stm8/sdcc A patch to implement the missing glue would be welcome (or just commit it to the branch if you are an sdcc developer). I guess most of the implementation can be done by looking at how the z80 and hc08 ports do this. Philipp ¹ e.g. for emitting labels. Just do a make -k in device/lib/stm8 to see the error messages from the assembler, have a look at the generated .asm file. ------------------------------------------------------------------------------ Minimize network downtime and maximize team effectiveness. Reduce network management and security costs.Learn how to hire the most talented Cisco Certified professionals. Visit the Employer Resources Portal http://www.cisco.com/web/learning/employer_resources/index.html _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user