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 > Fortran > Re: A digressio...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 20 Topic 8153 of 8775
Post > Topic >>

Re: A digression

by e p chandler <epc8@[EMAIL PROTECTED] > Apr 18, 2008 at 09:20 PM

On Apr 18, 7:17=A0pm, Terence <tbwri...@[EMAIL PROTECTED]
> wrote:
> This came up accidentally when someone asked for a copy of an old
> program, and I found how D... big it was compared to what I am used to
> passing around.
>
> I have these two menu =A0programs, one written in my usual F77style and
> compiled with MS 3.31, which came to 44,676 bytes as an executable,
> and which runs in DOS or Windows command line or I can double-click on
> it in the directory, whatever, and it runs as expected, even on
> Macintosh DOS emulators (or pretty much any machine around).
>
> At some stage (2002, I think) I brought the source of this original
> F77 program into CVF 6.6 and compiled it as a command-line program to
> do absolutely the same job.
>
> There IS a difference. In the first program I call the SPAWN function
> for loading daughter programs for execution; in the Windows version I
> had to call SYSTEM to do the same job, one line difference, even
> though both actually use the SYSTEM function, but only the DOS program
> uses SPAWN.
>
> When these programs run, even I cannot tell which is which, since both
> appear as full screen programs with the same font and colours and so
> on, and no difference in behaviour at all.
>
> BUT, the windows-compiled version is 299,008 bytes long!
>
>
[snip]

>
> I bought this point to the attention of Lahey, some time ago and they
> saw the point and permited the distribution of a loadable DLL( with
> most of the Lahey library inside), allowing small programs to be sent
> commercially and so updatable by sending new small replacement main
> modules.
>
> So if I have 60 Windows programs, I could l have say 60 small modules
> of about 60k each plus one humungous DLL of I guess 300K; total 3900k,
> instead of =A060 times 300k or 18 Megabyte to distribute?.

Look at the large size of the Salford/Silverfrost run-time library for
Fortran and C. IIRC it's about 1.5 megabytes.

>
> People wonder why I stick to F77 and DOS-in -Windows?

Good luck. Vista does not run DOS graphics. Vista does not allow text
in fullscreen mode. My good old DOS text editor runs like a dead dog
in a console window... Eventually you will not have a choice. Old
stuff just won't run anymore - or emulation will extract a large
penalty in performance.

Second, it's worth using some features of Fortran 95+. Free format,
control structures, array operations, initialization expressions,
parameter attribute, BOZ, stream I/O .... and others.

-- e
 




 20 Posts in Topic:
A digression
Terence <tbwright@[EMA  2008-04-18 16:17:36 
Re: A digression
Steve Lionel <steve.li  2008-04-19 00:11:37 
Re: A digression
glen herrmannsfeldt <g  2008-04-18 16:43:45 
Re: A digression
e p chandler <epc8@[EM  2008-04-18 21:20:14 
Re: A digression
glen herrmannsfeldt <g  2008-04-18 21:19:27 
Re: A digression
Gary Scott <garylscott  2008-04-19 11:11:27 
Re: A digression
Gary Scott <garylscott  2008-04-19 11:09:56 
Re: A digression
e p chandler <epc8@[EM  2008-04-19 11:03:52 
Re: A digression
Gary Scott <garylscott  2008-04-19 18:26:29 
Re: A digression
glen herrmannsfeldt <g  2008-04-20 16:26:43 
Re: A digression
Terence <tbwright@[EMA  2008-04-19 17:16:13 
Re: A digression
Steve Lionel <steve.li  2008-04-20 01:45:15 
Re: A digression
Terence <tbwright@[EMA  2008-04-19 17:33:59 
Re: A digression
Terence <tbwright@[EMA  2008-04-19 20:24:39 
RTL "bloat" -- Re: A digression
"Kevin G. Rhoads&quo  2008-04-23 14:19:07 
Re: RTL "bloat" -- Re: A digression
Craig Powers <enigma@[  2008-04-23 14:33:15 
Re: RTL "bloat" -- Re: A digression
"Kevin G. Rhoads&quo  2008-04-24 13:09:34 
Re: RTL "bloat" -- Re: A digression
Paul van Delst <Paul.v  2008-04-24 11:00:12 
Re: RTL "bloat" -- Re: A digression
Dan Nagle <dannagle@[E  2008-04-24 15:28:50 
Re: RTL "bloat" -- Re: A digression
"Kevin G. Rhoads&quo  2008-04-28 14:58:36 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Mon Oct 13 8:52:01 CDT 2008.