TIP: Click on subject to list as thread! ANSI
echo: nthelp
to: Geo
from: Paul Ranson
date: 2004-10-24 17:09:14
subject: Re: Organizing source code

From: "Paul Ranson" 

How many bytes of assembly language does it take to print two floating point numbers?

If you look at the assembly language output from your C++ compiler you'll
see that your entire program is devoted to printing two pre-calculated
constants.

Paul

"Geo"  wrote in message news:417bbeea{at}w3.nls.net...
> "Ellen K." 
wrote in message
> news:gpmmn0pocdcqnrk79vui9ogbesbusjtigd{at}4ax.com...
>
>> >when the heck would you use a float number instead of using double?
>
>> To save space.
>
> ROFL!!!! In a language where you use MFC?
>
> Speed I'll accept, if it can process float faster than double then great
> but
> saving space? I mean this
>
> #include 
> int main()
> {
>  double a, b;
>  a=15/2;
>  b=15.0/2;
>  cout << a << " " << b << "\n";
>  return 0;
> }
>
> compiles to a 193K executable, written in assembler that would probably be
> less than 40 bytes. How worried about space can a C++ programmer be?
>
> Geo.
>
>

--- BBBS/NT v4.01 Flag-5
* Origin: Barktopia BBS Site http://HarborWebs.com:8081 (1:379/45)
SEEN-BY: 633/267 270 5030/786
@PATH: 379/45 1 396/45 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.