Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C > Re: ****tabilit...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 30 of 36 Topic 26061 of 26972
Post > Topic >>

Re: ****tability: Harmony between PC and microcontroller

by Flash Gordon <spam@[EMAIL PROTECTED] > May 7, 2008 at 08:01 PM

Bart van Ingen Schenau wrote, On 07/05/08 14:05:
> On 6 mei, 19:19, Tomás Ó hÉilidhe <t...@[EMAIL PROTECTED]
> wrote:
> 
>> A better example would be an instant messenger client running on a
>> small handheld device using an LCD display. If the algorithmic code is
>> too slow, then the display will suffer. Using int instead of
>> uint_fast8_t will lead to code which is about 2 to 4 times slower.

Personally I don't see anything wrong with using the fast types when not 
dealing with arrays. With arrays sometimes on some architectures the 
fast type will be slower. Of course, you need to know the range you 
require, but you need to know that anyway to decide if int is large 
enough or if you need long.

> This is where your reasoning starts to break down.
> A small, handheld device is likely to be using an ARM-based processor.
> These processors are nowadays almost universally 32-bitters. (A really
> old ARM processof might be 16 bit).
> Therefore, the difference between using 'int' and 'uint_fast8_t' is
> expected to be zero.

That does not show that uint_fast8_t is wrong.

> The problem with your reasoning is that you try to extrapolate from a
> single experience with one particular embedded system. Your
> extrapolation just does not work.
> I would strongly advise you to gather data-points on about a dozen
> different processors (with as much difference between them as you can)
> before making sweeping recommendations like you do in this thread.

I agree. Now I'll give a reason for *not* using the fast types. 
Sometimes you want to be able to test your code on another platform 
because you have better tools and you want to know that the variable 
ranges will be the same as on your final target even if it means running 
more slowly!

>> I'm talking about ****table performance, not just performance.
> 
> Then tell me, what is the performance of that webbrowser on your PIC?

An algorithm that you might want running on either a small embedded 
processor or a high powered graphics workstation is one to work out the 
optimum brightness/contrast setting for an image based on some 
statistics. I know you might want it on a small processor because I had 
to implement it on one and then later ****t it to another smaller 
processor (in both cases HW collected the statistics, I only had to 
process them in real time), and the use on a high powered graphics 
workstation should be obvious. The same can apply to some other image 
processing algorithms, so it does happen.
-- 
Flash Gordon
 




 36 Posts in Topic:
Portability: Harmony between PC and microcontroller
=?ISO-8859-1?Q?Tom=E1s_=D  2008-05-04 18:16:43 
Re: Portability: Harmony between PC and microcontroller
Jack Klein <jackklein@  2008-05-04 21:42:18 
Re: Portability: Harmony between PC and microcontroller
CBFalconer <cbfalconer  2008-05-05 02:45:49 
Re: Portability: Harmony between PC and microcontroller
Martin Ambuhl <mambuhl  2008-05-05 03:38:34 
Re: Portability: Harmony between PC and microcontroller
CBFalconer <cbfalconer  2008-05-05 19:03:03 
Re: Portability: Harmony between PC and microcontroller
"Bartc" <bc@  2008-05-05 10:07:18 
Re: Portability: Harmony between PC and microcontroller
Keith Thompson <kst-u@  2008-05-05 09:28:46 
Re: Portability: Harmony between PC and microcontroller
=?ISO-8859-1?Q?Tom=E1s_=D  2008-05-05 06:57:18 
Re: Portability: Harmony between PC and microcontroller
CBFalconer <cbfalconer  2008-05-05 19:09:27 
Re: Portability: Harmony between PC and microcontroller
Chris Dollin <chris.do  2008-05-06 12:33:20 
Re: Portability: Harmony between PC and microcontroller
=?ISO-8859-1?Q?Tom=E1s_=D  2008-05-06 05:20:29 
Re: Portability: Harmony between PC and microcontroller
Chris Dollin <chris.do  2008-05-06 13:40:21 
Re: Portability: Harmony between PC and microcontroller
Eric Sosman <Eric.Sosm  2008-05-06 10:53:13 
Re: Portability: Harmony between PC and microcontroller
Keith Thompson <kst-u@  2008-05-06 12:28:04 
Re: Portability: Harmony between PC and microcontroller
=?ISO-8859-1?Q?Tom=E1s_=D  2008-05-06 06:06:35 
Re: Portability: Harmony between PC and microcontroller
Chris Dollin <chris.do  2008-05-06 16:16:18 
Re: Portability: Harmony between PC and microcontroller
"soscpd@[EMAIL PROTE  2008-05-06 07:32:43 
Re: Portability: Harmony between PC and microcontroller
=?ISO-8859-1?Q?Tom=E1s_=D  2008-05-06 07:49:48 
Re: Portability: Harmony between PC and microcontroller
"soscpd@[EMAIL PROTE  2008-05-06 09:40:46 
Re: Portability: Harmony between PC and microcontroller
=?ISO-8859-1?Q?Tom=E1s_=D  2008-05-06 10:19:09 
Re: Portability: Harmony between PC and microcontroller
"Herbert Rosenau&quo  2008-05-06 19:01:56 
Re: Portability: Harmony between PC and microcontroller
=?ISO-8859-1?Q?Tom=E1s_=D  2008-05-06 15:29:56 
Re: Portability: Harmony between PC and microcontroller
santosh <santosh.k83@[  2008-05-17 01:14:57 
Re: Portability: Harmony between PC and microcontroller
jacob navia <jacob@[EM  2008-05-16 22:24:28 
Re: Portability: Harmony between PC and microcontroller
Ben Pfaff <blp@[EMAIL   2008-05-16 13:42:16 
Re: Portability: Harmony between PC and microcontroller
jacob navia <jacob@[EM  2008-05-17 01:22:10 
Re: Portability: Harmony between PC and microcontroller
Ian Collins <ian-news@  2008-05-17 09:28:15 
Re: Portability: Harmony between PC and microcontroller
soscpd <soscpd@[EMAIL   2008-05-06 20:47:09 
Re: Portability: Harmony between PC and microcontroller
Bart van Ingen Schenau &l  2008-05-07 06:05:12 
Re: Portability: Harmony between PC and microcontroller
Flash Gordon <spam@[EM  2008-05-07 20:01:34 
Re: Portability: Harmony between PC and microcontroller
"robertwessel2@[EMAI  2008-05-07 11:45:58 
Re: Portability: Harmony between PC and microcontroller
Bart van Ingen Schenau &l  2008-05-08 02:46:03 
Re: Portability: Harmony between PC and microcontroller
Bart van Ingen Schenau &l  2008-05-08 03:14:57 
Re: Portability: Harmony between PC and microcontroller
=?ISO-8859-1?Q?Tom=E1s_=D  2008-05-16 16:12:50 
Re: Portability: Harmony between PC and microcontroller
Chris H <chris@[EMAIL   2008-05-17 09:00:09 
Re: Portability: Harmony between PC and microcontroller
Ian Collins <ian-news@  2008-05-17 20:18:27 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 21:29:09 CDT 2008.