News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

executable size

Started by shaldan, March 15, 2006, 07:32:52 AM

Previous topic - Next topic

shaldan

Hello to assembler ancient ones :)).
I have simple clearly theoretical question:

Are there any speed or other penalties from a size of executable ?

Suppose I have a application, that have for example with graphics and sound 50MB or more MB.
If I merge it together to one executable will there be any problem when executing ?

I know this way I cannot test, if a user has enough memory .... it is just a general question.

thank you :)

Mark Jones

Hello Shaldan,

No you generally wouldn't want to make a single executable which is 50MB, because the entire thing must fit into RAM to run. It is possible to do this, however - but what if someone tries to run it and they only had 64MB of RAM? :lol

A better approach to large projects like this might be to put the audio and video into separate folders or data streams, and load only what is needed for the next level/minute/etc. Then you end up with a small executable and some large data files, which will work on all computers.

Good Luck. :bg
"To deny our impulses... foolish; to revel in them, chaos." MCJ 2003.08

shaldan

:)) I know that it is not convinient way to do .. but the question was ... Are there any penalties with speed or anything else ?. Lets suppose that all users have 2x more RAM than the size of my executable.  Just curious. Nothing more. :))

thanks

Tedd

The only speed penalty would be from the operating system getting all of the program into memory, and the cpu fitting the necessary parts into its cache. For the latter, this depends on the structure of the program, not necessarily its size.
But, in general, a small program 'should' have fewer problems.
No snowflake in an avalanche feels responsible.

shaldan

thank you Tedd ... that is interesting.
This kind of an answer i wanted to get.
thank you.