Re: A89: ASM Mentoring


[Prev][Next][Index][Thread]

Re: A89: ASM Mentoring




What?

cout handles EVERYTHING. Variables, strings, whatever. I think cout compiles 
to 5k of code by itself!

Mike


>From: "Kevin Goodsell" <goodsell@bridgernet.com>
>Reply-To: assembly-89@lists.ticalc.org
>To: <assembly-89@lists.ticalc.org>
>Subject: Re: A89: ASM Mentoring
>Date: Fri, 15 Sep 2000 18:07:33 -0600
>
>
>There is no reason that
>
>cout << "Some text.";
>
>should produce any more code than
>
>printf("Some text.");
>
>though I've never tested it. If anything, I believe printf() should produce
>more, assuming the C++ compiler/linker is reasonably well implemented. Why?
>Consider all the different things printf has to know how to deal with:
>strings, chars, int, short, long, float, double, long double, pointers, not
>to mention all the formatting options. Of course this assumes that printf()
>handles all these things by itself, without making any function calls, 
>which
>would be a stupid way to implement it.
>
>The C++ statement makes only one function call, to the
>ostream::operator<<(char *) function, and that function only needs to be
>able to deal with strings. There is no reason that any other ostream
>functions (other than a constructor, which doesn't need to do much) would
>need to be linked. Of course this all depends on the implementation.
>
>The fact of the matter is that most of the claims about C++ being too big
>and too slow are completely unfounded. Yes, it has certain features that 
>can
>slow it down and make the code larger, but it's not necessary to use them.
>
>-Kevin
>
>
>-----Original Message-----
>From: Michael Cowart <freakonaleash881@hotmail.com>
>To: assembly-89@lists.ticalc.org <assembly-89@lists.ticalc.org>
>Date: Friday, September 15, 2000 10:07 AM
>Subject: Re: A89: ASM Mentoring
>
>
> >
> >The much larger code thing - Most C++ people want to use
> >cout << "Your text here"
> >instead of
> >printf("Your text here")
> >
> >(Zeljko's oft repeated (and true) example of why C++ on the calc would 
>not
> >be good.)
> >
> >That results in much larger code. Most of the C++ extensions are that 
>way.
>I
> >agree, you could code the exact same way in C++ as you would in C, but it
> >would make the extraneous C++ useless.
> >
> >Mike
> >
> >
> >>From: "Olle Hedman" <oh@hem.passagen.se>
> >>Reply-To: assembly-89@lists.ticalc.org
> >>To: <assembly-89@lists.ticalc.org>
> >>Subject: Re: A89: ASM Mentoring
> >>Date: Fri, 15 Sep 2000 11:45:40 +0200
> >>
> >>
> >>
> >>From: "Michael Cowart" <freakonaleash881@hotmail.com>
> >> > I am pretty good in C (C++ is not supported, the main reason being it
> >> > produces MUCH larger code). My ASM skills are severely lacking, but 
>if
>I
> >>had
> >> > motivation (like a group getting together to do Zelda =), I would go
>the
> >> > extra mile. Any one want to start a group? We'd need someone to do a
> >>website
> >> > (my skills lack sadly in that field). I have the time (college is
>sweet)
> >>to
> >> > really work on something.
> >>
> >>No. C++ doesn't really produce larger code. What is large is the 
>standard
> >>objects you often use when you program C++ for a PC. Bu you wouldn't do
> >>that
> >>on a ti89.
> >>The main reason as I can see, is that there isn't really much point in
> >>useing C++ on such a small/simple platform. You wouldn't code much
> >>different
> >>then you would in C anyway.
> >>
> >>///Olle
> >>
> >>
> >>
> >
> >_________________________________________________________________________
> >Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
> >
> >Share information about yourself, create your own public profile at
> >http://profiles.msn.com.
> >
> >
>
>

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.