Re: C vs C++ in Embedded Systems?

From: Dave Hansen (
Date: 01/31/05

Date: Mon, 31 Jan 2005 17:52:15 GMT

On Sat, 29 Jan 2005 18:12:10 GMT, Ed Beroset <>

>int numerator = 35323;
>int denominator = 1038;
>int answer = numerator / denominator;
>On an 8-bit micro with no native divide instruction, this can generate
>quite a bit of code even though there was no obvious library call.

As well as the wrong answer. Or at least, not the answer that was
probably intended...



Change is inevitable, progress is not.